* dtable.cc (dtable::fixup_after_fork): Revert thinko below.
* pinfo.cc (set_myself): Show pid in initial strace line.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user