Mailing List Archive

Re: Server::Initialize
After fixing that the sub detachFromTty() will fail. My reading of the
man page for setsid indicated that it it is not necessary, so I removed
the call to detachFromTty.

if this for a daemon() routine, or the like (used to put a process in
the background, and run as a daemon), then, i would use setsid() to do
this. you don't want your daemon processes with the same ctty, process
group or session id as the calling process. besides the fork/exit
calls that are also required, if youhave setsid(2), then, it really
does everything that is needed.