bugzilla-daemon at mindrot.org
2001-Oct-22 19:18 UTC
[Bug 3] sshd fails to close open file descriptors when forking
bugzilla.mindrot.org/show_bug.cgi?id=3 markus at openbsd.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Additional Comments From markus at openbsd.org 2001-10-23 05:18 ------- daemon() works fine. the hang-on-exit is about fd 0,1,2 ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2001-Oct-22 19:48 UTC
[Bug 3] sshd fails to close open file descriptors when forking
bugzilla.mindrot.org/show_bug.cgi?id=3 ralston at pobox.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | ------- Additional Comments From ralston at pobox.com 2001-10-23 05:48 ------- It doesn't matter whether or not daemon() or some other helper function does it, but sshd MUST close all fds from 3 to sysconf(_SC_OPEN_MAX) after forking. If the hang-on-exit bug is with fds 0/1/2, then indeed, this bug isn't related to the hang-on-exit bug. But it's still a bug. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2001-Oct-22 20:34 UTC
[Bug 3] sshd fails to close open file descriptors when forking
bugzilla.mindrot.org/show_bug.cgi?id=3 markus at openbsd.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |WONTFIX ------- Additional Comments From markus at openbsd.org 2001-10-23 06:34 ------- daemons call daemon(), they do not care about filedescriptors > 3. btw, i was just told that cat(1) does not close extra filedescriptors, and i don't think there are more important issues. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
Reasonably Related Threads
- sshd fails to close open file descriptors when forking
- [PATCH v2] launch: Close file descriptors after fork (RHBZ#1123007).
- [PATCH] launch: Close file descriptors after fork (RHBZ#1123007).
- [Bug 3] sshd does not properly daemonize itself
- [libguestfs PATCH] lib: remove guestfs_int_cmd_clear_close_files()