diff options
author | Damien Miller <djm@mindrot.org> | 2000-09-05 16:13:06 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-09-05 16:13:06 +1100 |
commit | bac2d8aa5e642a70045e713853b13d020b9c5d57 (patch) | |
tree | 98ddc81efce2273b3dfaff03b51242c988d30abf /bsd-daemon.c | |
parent | 676092fad0b6edca8f1fe731d7c3a000465a9bef (diff) |
- (djm) Merge cygwin support from Corinna Vinschen <vinschen@cygnus.com>
Diffstat (limited to 'bsd-daemon.c')
-rw-r--r-- | bsd-daemon.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bsd-daemon.c b/bsd-daemon.c index de829958..f704a904 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); } |