summaryrefslogtreecommitdiff
path: root/openbsd-compat/daemon.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2010-01-24 21:39:36 +0000
committerColin Watson <cjwatson@debian.org>2010-01-24 21:39:36 +0000
commit964476f91b66c475d5b8fa1e8b28d39a97a1b56e (patch)
treed12ff16d94cffc5d84dba0193eaaa616967c9c2c /openbsd-compat/daemon.c
parentcadac134eda6ed97478afdc528a68dd33f31dbc5 (diff)
parent1e4cfeee6c17b02af09418c5afe4a4d71aaaf0c8 (diff)
import openssh-5.3p1-gsskex-all-20100124.patch
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