* dtable.cc (dtable::fixup_after_fork): Revert thinko below.

* pinfo.cc (set_myself): Show pid in initial strace line.
This commit is contained in:
Christopher Faylor
2000-10-13 03:13:59 +00:00
parent 1ec4f618fe
commit ee20f060a8
3 changed files with 7 additions and 4 deletions

View File

@@ -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);