summaryrefslogtreecommitdiff
path: root/openbsd-compat/daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsd-compat/daemon.c')
-rw-r--r--openbsd-compat/daemon.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/openbsd-compat/daemon.c b/openbsd-compat/daemon.c
index e3a6886bd..3efe14c68 100644
--- a/openbsd-compat/daemon.c
+++ b/openbsd-compat/daemon.c
@@ -57,18 +57,8 @@ daemon(int nochdir, int noclose)
57 case -1: 57 case -1:
58 return (-1); 58 return (-1);
59 case 0: 59 case 0:
60#ifdef HAVE_CYGWIN
61 register_9x_service();
62#endif
63 break; 60 break;
64 default: 61 default:
65#ifdef HAVE_CYGWIN
66 /*
67 * This sleep avoids a race condition which kills the
68 * child process if parent is started by a NT/W2K service.
69 */
70 sleep(1);
71#endif
72 _exit(0); 62 _exit(0);
73 } 63 }
74 64