diff options
author | Christopher Faylor <me@cgf.cx> | 2000-10-13 07:13:59 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-10-13 07:13:59 +0400 |
commit | ee20f060a813cd2588dfcdc8665737f361723289 (patch) | |
tree | 50bcfb8cb7eca1f7edf211c013d68355b5578a9e /winsup/cygwin/dtable.cc | |
parent | 1ec4f618feb517c020ff25784bedc66dd4f6f0e2 (diff) |
* dtable.cc (dtable::fixup_after_fork): Revert thinko below.
* pinfo.cc (set_myself): Show pid in initial strace line.
Diffstat (limited to 'winsup/cygwin/dtable.cc')
-rw-r--r-- | winsup/cygwin/dtable.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/winsup/cygwin/dtable.cc b/winsup/cygwin/dtable.cc index ec05498f8..7d520b6da 100644 --- a/winsup/cygwin/dtable.cc +++ b/winsup/cygwin/dtable.cc @@ -472,9 +472,7 @@ dtable::fixup_after_fork (HANDLE parent) for (size_t i = 0; i < size; i++) if ((fh = fds[i]) != NULL) { - if (fds[i]->get_close_on_exec ()) - release (i); - else if (fh->get_need_fork_fixup ()) + if (fds[i]->get_close_on_exec () || fh->get_need_fork_fixup ()) { debug_printf ("fd %d(%s)", i, fh->get_name ()); fh->fixup_after_fork (parent); |