From owner-cvs-src@FreeBSD.ORG Wed Jul 21 13:53:14 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A7AA316A4CE; Wed, 21 Jul 2004 13:53:14 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 89F6F43D4C; Wed, 21 Jul 2004 13:53:14 +0000 (GMT) (envelope-from ghelmer@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i6LDrEKf049388; Wed, 21 Jul 2004 13:53:14 GMT (envelope-from ghelmer@repoman.freebsd.org) Received: (from ghelmer@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i6LDrEFg049387; Wed, 21 Jul 2004 13:53:14 GMT (envelope-from ghelmer) Message-Id: <200407211353.i6LDrEFg049387@repoman.freebsd.org> From: Guy Helmer Date: Wed, 21 Jul 2004 13:53:14 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_4 Subject: cvs commit: src/lib/libc/gen daemon.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jul 2004 13:53:14 -0000 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 . 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