diff options
author | Christopher Faylor <me@cgf.cx> | 2012-04-01 22:28:39 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2012-04-01 22:28:39 +0000 |
commit | 881beea81de7a0877c64c01ba74de5e8a8d9dfd5 (patch) | |
tree | c09074c640b7e836e09e2333d55675b4f4b6baf6 /newlib/libc/sys/linux/linuxthreads/lockfile.c | |
parent | c4ee9311c2c8cd01cadaa411900d284ba0fd2bdb (diff) | |
download | cygnal-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/lockfile.c')
0 files changed, 0 insertions, 0 deletions