]> andersk Git - openssh.git/blobdiff - openbsd-compat/daemon.c
- (dtucker) [openbsd-compat/getrrsetbyname.c] Reduce answer buffer size so it
[openssh.git] / openbsd-compat / daemon.c
index f380139d3566fd30c5349e19e8959e95ec7e11b6..3efe14c68c415b1639244e33b988b2c8bf9b94b3 100644 (file)
 # include <fcntl.h>
 #endif
 
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
+
 int
 daemon(int nochdir, int noclose)
 {
@@ -53,18 +57,8 @@ daemon(int nochdir, int noclose)
        case -1:
                return (-1);
        case 0:
-#ifdef HAVE_CYGWIN
-               register_9x_service();
-#endif
                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);
        }
 
This page took 0.102807 seconds and 4 git commands to generate.