From owner-freebsd-questions@FreeBSD.ORG Sat Mar 28 11:30:53 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7B240106564A for ; Sat, 28 Mar 2009 11:30:53 +0000 (UTC) (envelope-from mel.flynn+fbsd.questions@mailing.thruhere.net) Received: from mailhub.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 4816D8FC18 for ; Sat, 28 Mar 2009 11:30:53 +0000 (UTC) (envelope-from mel.flynn+fbsd.questions@mailing.thruhere.net) Received: from sarevok.dnr.servegame.org (gate.lan.rachie.is-a-geek.net [192.168.2.10]) by mailhub.rachie.is-a-geek.net (Postfix) with ESMTP id 2F1B87E818; Sat, 28 Mar 2009 03:30:52 -0800 (AKDT) From: Mel Flynn To: freebsd-questions@freebsd.org Date: Sat, 28 Mar 2009 12:30:26 +0100 User-Agent: KMail/1.11.0 (FreeBSD/8.0-CURRENT; KDE/4.2.0; i386; ; ) References: <49CBDA39.10409@eecs.harvard.edu> <458C5AD3-A517-4253-A866-40685A2FC338@mac.com> <49CBEA9C.3040502@eecs.harvard.edu> In-Reply-To: <49CBEA9C.3040502@eecs.harvard.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903281230.26513.mel.flynn+fbsd.questions@mailing.thruhere.net> Cc: Ian Rose Subject: Re: most signals not being delivered to processes X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Mar 2009 11:30:53 -0000 On Thursday 26 March 2009 21:50:36 Ian Rose wrote: > However, hopefully the problem has gone away. Another member of our > team thinks that somehow the issue is related to some system services > (sshd and dhcpd) failing to completely detach from their controlling > terminal due to a setuid wrapper he set up, and thus they "are left > holding on to some old bad controlling terminal even though they > daemonize themselves". As a hint to your team member, daemon(8) program allows one to switch user before daemonizing and detaches properly when asked to. If he wishes to implement this in C himself, visit the setusercontext(3) manpage, which does the setuid() and login class limits automagically. -- Mel