Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Mar 2009 12:30:26 +0100
From:      Mel Flynn <mel.flynn+fbsd.questions@mailing.thruhere.net>
To:        freebsd-questions@freebsd.org
Cc:        Ian Rose <ianrose@eecs.harvard.edu>
Subject:   Re: most signals not being delivered to processes
Message-ID:  <200903281230.26513.mel.flynn+fbsd.questions@mailing.thruhere.net>
In-Reply-To: <49CBEA9C.3040502@eecs.harvard.edu>
References:  <49CBDA39.10409@eecs.harvard.edu> <458C5AD3-A517-4253-A866-40685A2FC338@mac.com> <49CBEA9C.3040502@eecs.harvard.edu>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?200903281230.26513.mel.flynn+fbsd.questions>