This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin 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: Calling RegisterServiceProcess from setsid ?


On Sat, Jun 07, 2003 at 12:32:21PM -0400, Pierre A. Humblet wrote:
>At 11:12 AM 6/7/2003 -0400, Christopher Faylor wrote:
>>I guess fhandler_tty_slave::close could call FreeConsole too when the
>>last tty is closed and setsid has been previously called.
>>
>>I'll check in a change to do this.
>
>Thanks Chris. That does it.
>
>I met two problems while using try_to_debug in daemons that have 
>forked but not yet closed their std handles. 
>The most serious was that although gdb was created with a new console, 
>it's not always using it for I/O.
>In some situations (e.g. try_to_debug is setsid, with sshd) it's 
>competing for input with the shell, and losing. 
>I don't know how to fix that. 
>
>The other problem is trivial, I had a space in the program path.
>Actually it would be better to quote the two %s below.

Sigh.  I guess.  Either that or "just don't do that".

cgf 


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