From bac2d8aa5e642a70045e713853b13d020b9c5d57 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Tue, 5 Sep 2000 16:13:06 +1100 Subject: - (djm) Merge cygwin support from Corinna Vinschen --- bsd-daemon.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bsd-daemon.c') diff --git a/bsd-daemon.c b/bsd-daemon.c index de829958c..f704a9048 100644 --- a/bsd-daemon.c +++ b/bsd-daemon.c @@ -51,6 +51,13 @@ daemon(nochdir, noclose) case 0: break; default: +#ifdef HAVE_CYGWIN + /* + * This sleep avoids a race condition which kills the + * child process if parent is started by a NT/W2K service. + */ + sleep(1); +#endif _exit(0); } -- cgit v1.2.3