Date: Wed, 21 Jul 2004 13:53:14 +0000 (UTC) From: Guy Helmer <ghelmer@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/gen daemon.c Message-ID: <200407211353.i6LDrEFg049387@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
ghelmer 2004-07-21 13:53:14 UTC FreeBSD src repository Modified files: (Branch: RELENG_4) lib/libc/gen daemon.c Log: MFC: daemon.c 1.6 daemon.3 1.13-1.14 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 before calling fork(2) and then restoring SIGHUP's action after setsid(3). Based on the patch by Martin Kammerhofer <mkamm@gmx.net>. This has been in -current for 8 months with no reports of adverse affects. PR: bin/25462 Prompted-by: dada@sbox.tugraz.at Revision Changes Path 1.3.2.1 +21 -2 src/lib/libc/gen/daemon.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407211353.i6LDrEFg049387>