On 23/12/2013 01:47, François Revol wrote: >> I'm not sure if it's either our implementation which is broken or if >> it's not supposed to be in this order and it's just Linux and others >> which accept it anyway... > > At least netbsd's daemon seems to call it before even closing the old tty: > > http://ftp.netbsd.org/pub/NetBSD/NetBSD-current/xsrc/xfree/xc/programs/xdm/daemon.c > > The opengroup page for setsid() isn't very explicit. This one isn't much > more either though, it seems most relevant things are "implementation > specific" (why write specifications then...): > http://pubs.opengroup.org/onlinepubs/009696699/basedefs/xbd_chap11.html
At least I check in Linux and it still works with setsid() before the open() calls. François. _______________________________________________ Qemacs-devel mailing list Qemacs-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/qemacs-devel