search for: nochdir

Displaying 5 results from an estimated 5 matches for "nochdir".

2001 Jan 04
2
Patch to allow openssh-2.2.0-p1 to be started from /etc/inittab
....2.0p1-pen1/bsd-daemon.c *** openssh-2.2.0p1/bsd-daemon.c Wed Aug 30 00:21:22 2000 --- openssh-2.2.0p1-pen1/bsd-daemon.c Thu Jan 4 23:32:52 2001 *************** *** 70,74 **** return (0); } ! #endif /* !HAVE_DAEMON */ --- 70,111 ---- return (0); } ! #endif ! ! int ! sshd_daemon(nochdir, noclose) ! int nochdir, noclose; ! { ! int fd; ! ! if (getppid() != 1) ! { ! switch (fork()) { ! case -1: ! return (-1); ! case 0: ! break; ! default: ! _exit(0); ! } ! } ! ! signal(SIGTTOU, SIG_IGN); ! signal(SIGTTIN, SIG_IGN); ! ! if (setsid() ==...
2001 Aug 30
2
[PATCH]: Drop Cygwin workaround
...penSSH sources. Index: daemon.c =================================================================== RCS file: /cvs/openssh_cvs/openbsd-compat/daemon.c,v retrieving revision 1.1 diff -u -p -r1.1 daemon.c --- daemon.c 2001/01/31 21:52:03 1.1 +++ daemon.c 2001/08/30 08:41:39 @@ -51,13 +51,6 @@ 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); } Corinna -- Corinna Vinschen Cygwin Developer Red Hat, Inc. mail...
2001 Nov 20
1
[PATCH]: Allow SSHD to install as service under WIndows 9x/Me
...n.c =================================================================== RCS file: /cvs/openssh_cvs/openbsd-compat/daemon.c,v retrieving revision 1.1 diff -u -p -r1.1 daemon.c --- openbsd-compat/daemon.c 2001/01/31 21:52:03 1.1 +++ openbsd-compat/daemon.c 2001/11/20 12:44:23 @@ -49,6 +49,9 @@ daemon(nochdir, noclose) case -1: return (-1); case 0: +#ifdef HAVE_CYGWIN + register_9x_service(); +#endif break; default: #ifdef HAVE_CYGWIN -- Corinna Vinschen Cygwin Developer Red Hat, Inc. mailto:vinschen at redhat.com
2015 Feb 18
0
[Bug 1902] persistent mux master should chdir away from the current directory
...----------------- CC| |chrysn at fsfe.org --- Comment #3 from chrysn at fsfe.org --- looking to report this myself, i first found bug #1988; the change that fixed that back then ("djm at cvs.openbsd.org 2013/07/25 00:29:10") introduced a daemon(nochdir=1) call. using daemon(0, 1) instead of daemon(1, 1) at the end of control_persist_detach solves this bug for me. it is a little hard for me to test continuously, though -- the change works when i building from source, not when building the debian package, but those issues don't belong here. f...
1999 Nov 19
1
[solaris 7 patch] resubmit and extended ...
Okay, everything as the first large one I sent today, with a few extra mods. _PATH_MAILDIR is only used in sshd.c, that I can see, so moved the #ifdef from config.h.in to there. several files had __progname defined in the middle of the code, as well as at the top of the code, so cleaned those out. all the fixes for u_int32_t -> uint32_t and u_int16_t -> uint16_t, plus added appropriate