search for: no_daemon_flag

Displaying 3 results from an estimated 3 matches for "no_daemon_flag".

2007 Dec 26
1
sshd's -e doesn't work as expected
...===================================== RCS file: /cvsroot/src/crypto/dist/ssh/sshd.c,v retrieving revision 1.42 diff -u -p -r1.42 sshd.c --- sshd.c 18 Dec 2007 02:35:33 -0000 1.42 +++ sshd.c 26 Dec 2007 20:12:22 -0000 @@ -1485,8 +1485,16 @@ main(int ac, char **av) if (!(debug_flag || inetd_flag || no_daemon_flag)) { int fd; - if (daemon(0, 0) < 0) + if (daemon(0, 1) < 0) fatal("daemon() failed: %.200s", strerror(errno)); + close(STDIN_FILENO); + open(_PATH_DEVNULL, O_RDONLY); + close(STDOUT_FILENO); + open(_PATH_DEVNULL, O_WRONLY); + if (!log_stderr) { + close(STDERR_FILEN...
2002 Mar 26
1
Two patches for OpenSSH 3.1p1
...** --- 120,128 ---- /* Flag indicating that the daemon is being started from inetd. */ int inetd_flag = 0; + /* Flag indicating that the daemon is being started from init (/etc/inittab). */ + int init_flag = 0; + /* Flag indicating that sshd should not detach and become a daemon. */ int no_daemon_flag = 0; *************** *** 608,614 **** initialize_server_options(&options); /* Parse command-line arguments. */ ! while ((opt = getopt(ac, av, "f:p:b:k:h:g:V:u:o:dDeiqtQ46")) != -1) { switch (opt) { case '4': IPv4or6 = AF_INET; --- 612,618 ---- init...
2016 Nov 21
42
[Bug 2641] New: Add systemd notify code to to track running server
https://bugzilla.mindrot.org/show_bug.cgi?id=2641 Bug ID: 2641 Summary: Add systemd notify code to to track running server Product: Portable OpenSSH Version: 7.3p1 Hardware: Other OS: Linux Status: NEW Severity: enhancement Priority: P5 Component: sshd Assignee: