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
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to