Calling RegisterServiceProcess from setsid ?
Christopher Faylor
cgf@redhat.com
Sat Jun 7 17:00:00 GMT 2003
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
More information about the Cygwin-developers
mailing list