most signals not being delivered to processes

Mel Flynn mel.flynn+fbsd.questions at mailing.thruhere.net
Sat Mar 28 04:30:53 PDT 2009


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


More information about the freebsd-questions mailing list