This is the mail archive of the cygwin-patches@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]

Re: Make Cygwin damons easier to use on Win9x.


Hi!

Wednesday, 27 June, 2001 Kazuhiro Fujieda fujieda@jaist.ac.jp wrote:

KF> like the following?

KF> 2001-06-27  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>

KF>         * syscalls.cc (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.cc (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>         * exception.cc (ctrl_c_handler): Send SIGTERM to myself when catch
KF>         CTRL_LOGOFF_EVENT.

there's a forced AllocConsole() in cygwin inetd to allow some non-cygwin
applications to be run via ssh or telnet.
see http://sources.redhat.com/ml/cygwin/2001-03/msg00764.html 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.            mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19


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