Date: Mon, 10 Nov 2003 14:01:42 -0800 (PST) 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.3 daemon.c Message-ID: <200311102201.hAAM1g3n064240@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@gmx.net>. PR: bin/25462 Reviewed by: bde, alex.neyman@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311102201.hAAM1g3n064240>