commit | bac2d8aa5e642a70045e713853b13d020b9c5d57 | [log] [tgz] |
---|---|---|
author | Damien Miller <djm@mindrot.org> | Tue Sep 05 16:13:06 2000 +1100 |
committer | Damien Miller <djm@mindrot.org> | Tue Sep 05 16:13:06 2000 +1100 |
tree | 98ddc81efce2273b3dfaff03b51242c988d30abf | |
parent | 676092fad0b6edca8f1fe731d7c3a000465a9bef [diff] [blame] |
- (djm) Merge cygwin support from Corinna Vinschen <vinschen@cygnus.com>
diff --git a/bsd-daemon.c b/bsd-daemon.c index de82995..f704a90 100644 --- a/bsd-daemon.c +++ b/bsd-daemon.c
@@ -51,6 +51,13 @@ 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); }