* dcrt0.cc (dll_crt0_1): Initialize thread and debug stuff before handling
exec/fork. * dtable.cc (dtable::fixup_after_exec): Always clear out the read ahead buffer whether closing or adjusting. * path.cc (chdir): Avoid a compiler warning.
This commit is contained in:
@@ -445,13 +445,13 @@ dtable::fixup_after_exec (HANDLE parent, size_t sz, fhandler_base **f)
|
||||
first_fd_for_open = 0;
|
||||
for (size_t i = 0; i < size; i++)
|
||||
if (fds[i])
|
||||
if (fds[i]->get_close_on_exec ())
|
||||
release (i);
|
||||
else
|
||||
{
|
||||
fds[i]->clear_readahead ();
|
||||
{
|
||||
fds[i]->clear_readahead ();
|
||||
if (fds[i]->get_close_on_exec ())
|
||||
release (i);
|
||||
else
|
||||
fds[i]->fixup_after_exec (parent);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user