On Fri, Jan 16, 2004 at 09:21:35PM -0500, Pierre A. Humblet wrote: >On Fri, Jan 16, 2004 at 04:52:59PM -0500, Christopher Faylor wrote: >> On Fri, Jan 16, 2004 at 03:05:53PM -0500, Pierre A. Humblet wrote: >> >H:\>gcc try_forksetsid.c >> > >> >H:\>sh -c "./a" >> >waiting for children using tty0 to terminate >> >waiting for children using tty0 to terminate >> > >> >It's motivated by a weirdness I saw last night with exim, where the >> >setsid() is present. >> >> Did my latest cvs checkin fix this? It seems to for me but I don't have >> time for extensive testing. > >It does, but when I uncomment the setsid() in the program and run from >command.com, sh -c ./a.exe stays in the foreground (no prompt) when >CYGWIN=notty. Things are OK with CYGWIN=tty.
A fix to fhandler_console::close seems to rectify this behavior. Strange that it worked ok on XP. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/