This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: XWinrc configurable server (menus/icons)


On Wed, Aug 06, 2003 at 07:24:32PM -0700, Earle F. Philhower III wrote:
>Howdy Christopher...
>
>At 09:57 PM 8/6/2003 -0400, you wrote:
>>>a) Closes all fds on the fork()'d process
>>It *may* be helpful to call setsid() at this point, after you've closed
>>the file descriptors.
>
>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.

cgf


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]