summaryrefslogtreecommitdiffstats
path: root/newlib/libc/sys/linux/linuxthreads/barrier.c
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2012-04-01 22:28:39 +0000
committerChristopher Faylor <me@cgf.cx>2012-04-01 22:28:39 +0000
commit881beea81de7a0877c64c01ba74de5e8a8d9dfd5 (patch)
treec09074c640b7e836e09e2333d55675b4f4b6baf6 /newlib/libc/sys/linux/linuxthreads/barrier.c
parentc4ee9311c2c8cd01cadaa411900d284ba0fd2bdb (diff)
downloadcygnal-881beea81de7a0877c64c01ba74de5e8a8d9dfd5.tar.gz
cygnal-881beea81de7a0877c64c01ba74de5e8a8d9dfd5.tar.bz2
cygnal-881beea81de7a0877c64c01ba74de5e8a8d9dfd5.zip
* 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.
Diffstat (limited to 'newlib/libc/sys/linux/linuxthreads/barrier.c')
0 files changed, 0 insertions, 0 deletions