[ros-kernel] CSRSS Consoles
Aliberti Emanuele
ea at iol.it
Tue Nov 11 22:16:40 CET 2003
> If something, such as a cygwin process, duplicated a console handle,
> the console window won't disappear until that handle is closed. You
> can try this by running a cygwin daemon such as nasd in a shell
> window, then looking for the cmd.
>
> http://64.81.145.152/~arty/nasd-owns-console.jpg
Thank you Art. This clarifies what happened, but not how it happened.
I used cmd.exe to run telnet.exe and telnet used the cmd's console.
When the telnet's connected socket received a disconnect signal,
printed the message and the telnet process died. cmd.exe saw it and
printed the CWD but then what did it happen? Why cmd died? When a
process does not allocate its own console presumably duplicates the
one it borrows from the parent process. So you say that telnet's
duplicated handle of the cmd's console failed to be cleaned on
process termination. May that be due to a bug in KERNEL32/CSRSS? But
still I donn't understand why cmd died.
ea
More information about the Ros-kernel
mailing list