On 2008-02-04, Christian Heimes <lists at cheimes.de> wrote: >> Although bear in mind it's pretty UNIX-y. > > IIRC you have to fork a second time after you have changed the working > dir and created a new session group. Why? I don't think you do. Neither does BSD daemon.c or glibc daemon.c