cvs commit: src/lib/libc/gen daemon.3 daemon.c
Guy Helmer
ghelmer at FreeBSD.org
Mon Nov 10 14:01:43 PST 2003
ghelmer 2003/11/10 14:01:42 PST
FreeBSD src repository
Modified files:
lib/libc/gen daemon.3 daemon.c
Log:
Prevent abnormal termination of a child daemon process when created
by a parent that is a session leader (e.g., login shell) by ignoring
SIGHUP in before calling fork(2) and then restoring SIGHUP's action
after setsid(3). Based on the patch by Martin Kammerhofer
<mkamm at gmx.net>.
PR: bin/25462
Reviewed by: bde, alex.neyman at auriga.ru
Revision Changes Path
1.13 +15 -2 src/lib/libc/gen/daemon.3
1.6 +20 -1 src/lib/libc/gen/daemon.c
More information about the cvs-src
mailing list