close-on-exec handles are left open by exec parent
egor duda
deo@logos-m.ru
Thu Aug 2 07:40:00 GMT 2001
Hi!
here's the proposed patch. it also contains a fix FreeConsole ()
related bug -- when cygwin application frees its console,
"process_input" thread may be still running. When console is closed,
WaitForMultipleObjects () with console handle returns WAIT_FAILED, so
"process_input" thread starts cycling and eating CPU.
egor. mailto:deo@logos-m.ru icq 5165414 fidonet 2:5020/496.19
close-on-exec.diff
close-on-exec.ChangeLog
-------------- next part --------------
2001-08-02 Egor Duda <deo@logos-m.ru>
* spawn.cc (spawn_guts): In exec parent, wait for child to perfom
all handle fixups, and then close all files.
* dtable.cc (dtable::fixup_after_exec): Signal parent that fixup
is complete.
* dtable.h: Define "fixup complete" event name.
* fhandler_tty.cc (process_input): Stop processing when master
returns read error.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: close-on-exec.diff
Type: text/x-diff
Size: 3140 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20010802/4d89cdc0/attachment.bin>
More information about the Cygwin-patches
mailing list