XWinrc configurable server (menus/icons)

Christopher Faylor cgf@redhat.com
Fri Aug 8 02:58:00 GMT 2003


On Thu, Aug 07, 2003 at 05:36:10PM -0700, Earle F. Philhower III wrote:
>Howdy again Christopher...
>
>At 11:00 PM 8/6/2003 -0400, you wrote:
>>>I'm not really up on cygwin's process model, what would the setsid() call
>>>do?  I have read the man page and I'm still not sure what's a session ID 
>>or
>>>why I'd want a new one...
>>It would disassociate a tty from any child process.  It's often done
>>after file descriptors have been closed.
>>I don't know for sure that it will help anything but it may stop the
>>console windows from popping up -- at least in cygwin 1.5.x.
>
>Thanks, I added the setsid() just after closing all but STDIN/OUT/ERR
>and before the execl() and didn't notice any problems, so next time
>I put up a patch it'll have this change included.  [Of course, I'm
>running Cygwin 1.3 and not the 1.5 you're working on...]

...so watch how it will cause cygwin to crash and burn when you port to
1.5.1... :-)

cgf



More information about the Cygwin-xfree mailing list