Make Cygwin damons easier to use on Win9x.

egor duda
Wed Jun 27 11:11:00 GMT 2001


Wednesday, 27 June, 2001 Kazuhiro Fujieda wrote:

KF> like the following?

KF> 2001-06-27  Kazuhiro Fujieda  <>

KF>         * (setsid): Detach process from its console if
KF>         the current controlling tty is the console and already closed.
KF>         * dtable.h (class dtable): Add members to count descriptors
KF>         referring to the console.
KF>         * (dtable::dec_console_fds): New function to detach
KF>         process from its console.
KF>         (dtable::release): Decrement the counter of console descriptors.
KF>         (dtable::build_fhandler): Increment it.
KF>         * (ctrl_c_handler): Send SIGTERM to myself when catch

there's a forced AllocConsole() in cygwin inetd to allow some non-cygwin
applications to be run via ssh or telnet.
see for
details. won't your patch break this?

Maybe we just need some kind of api so that cygwin port of any
particular program can deliberately delete associated console?

Egor.   ICQ 5165414 FidoNet 2:5020/496.19

More information about the Cygwin-patches mailing list