]> sourceware.org Git - newlib-cygwin.git/commit
* dtable.cc (dtable::fixup_close): Define new function.
authorChristopher Faylor <me@cgf.cx>
Sun, 1 Apr 2012 22:28:39 +0000 (22:28 +0000)
committerChristopher Faylor <me@cgf.cx>
Sun, 1 Apr 2012 22:28:39 +0000 (22:28 +0000)
commit881beea81de7a0877c64c01ba74de5e8a8d9dfd5
treec09074c640b7e836e09e2333d55675b4f4b6baf6
parentc4ee9311c2c8cd01cadaa411900d284ba0fd2bdb
* dtable.cc (dtable::fixup_close): Define new function.
(dtable::fixup_after_exec): Use fixup_close() and detect when it was not
possible to open an inherited file handle.
(dtable::fixup_after_fork): Defensively close any file handles which were not,
for some reason, inheritable.
* dtable.h: Make #pragma once.
(dtable::fixup_close): Declare new function.
* fhandler_console.cc (fhandler_console::set_unit): Set I/O handles to NULL
when this function fails.
winsup/cygwin/ChangeLog
winsup/cygwin/dtable.cc
winsup/cygwin/dtable.h
winsup/cygwin/fhandler_console.cc
This page took 0.027646 seconds and 5 git commands to generate.