* dtable.cc (dtable::fixup_after_fork): Use SetStdHandle appropriately on

inherited fds.
This commit is contained in:
Christopher Faylor 2001-09-10 02:11:59 +00:00
parent 6409b03b1a
commit f3acbe3e3f
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Sun Sep 9 22:11:27 2001 Christopher Faylor <cgf@cygnus.com>
* dtable.cc (dtable::fixup_after_fork): Use SetStdHandle appropriately
on inherited fds.
Sun Sep 9 20:09:11 2001 Christopher Faylor <cgf@cygnus.com>
* sigproc.cc (NZOMBIES): Reduce substantially to minimize memory use.

View File

@ -536,6 +536,10 @@ dtable::fixup_after_fork (HANDLE parent)
debug_printf ("fd %d (%s)", i, fh->get_name ());
fh->fixup_after_fork (parent);
}
if (i == 0)
SetStdHandle (std_consts[i], fh->get_io_handle ());
else if (i <= 2)
SetStdHandle (std_consts[i], fh->get_output_handle ());
}
}