search for: noclose

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

Did you mean: noclone
2001 Jan 04
2
Patch to allow openssh-2.2.0-p1 to be started from /etc/inittab
...n1/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() == -1 &&...
2005 Jul 25
1
ssh -f won't detach properly when run from cron.
...d, let ssh continue in the background. */ if (fork_after_authentication_flag) if (daemon(1, 1) < 0) fatal("daemon() failed: %.200s", strerror(errno)); implements the "-f" option, but when run from cron, it does not detach properly because of the second parameter (noclose) of the daemon() function. The result is a defunct process and a CRON process waiting for ssh to exit. I don't understand why the "noclose" parameter of daemon() is set to "1", could somebody explain ? thanks for all. -- fraff
2001 Aug 30
2
[PATCH]: Drop Cygwin workaround
...urces. 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. mailto:vinsch...
2001 Nov 20
1
[PATCH]: Allow SSHD to install as service under WIndows 9x/Me
...============================================================== 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
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