]> sourceware.org Git - newlib-cygwin.git/commit
* syscalls.cc (setsid): Detach process from its console if the current
authorChristopher Faylor <me@cgf.cx>
Thu, 26 Jul 2001 00:10:52 +0000 (00:10 +0000)
committerChristopher Faylor <me@cgf.cx>
Thu, 26 Jul 2001 00:10:52 +0000 (00:10 +0000)
commit0cc642a5f1b2121b4a451dfcd25fd98384f694c9
tree4250d61796a5bcaa3304a691c988e7430c0e6d81
parent811bf2902df2465fef297c82be03ed5c1fcbd0fa
* syscalls.cc (setsid): Detach process from its console if the current
controlling tty is the console and already closed.
* dtable.h (class dtable): Add members to count descriptors referring to the
console.
* dtable.cc (dtable::dec_console_fds): New function to detach process from its
console.
(dtable::release): Decrement the counter of console descriptors.
(dtable::build_fhandler): Increment it.
* exception.cc (ctrl_c_handler): Send SIGTERM to myself when catch
CTRL_SHUTDOWN_EVENT.
winsup/cygwin/ChangeLog
winsup/cygwin/dtable.cc
winsup/cygwin/dtable.h
winsup/cygwin/exceptions.cc
winsup/cygwin/syscalls.cc
This page took 0.027584 seconds and 5 git commands to generate.