* pipe.cc (fhandler_pipe::dup): Don't dup input_handle if it doesn't exist.

This commit is contained in:
Christopher Faylor 2003-03-22 18:30:58 +00:00
parent ca04f61fc7
commit ff3ef36d88
2 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2003-03-22 Christopher Faylor <cgf@redhat.com>
* pipe.cc (fhandler_pipe::dup): Don't dup input_handle if it doesn't
exist.
2003-03-22 Christopher Faylor <cgf@redhat.com>
* syscalls.cc (unlink): Be more defensive when SetFileAttributes is

View File

@ -132,10 +132,13 @@ fhandler_pipe::fixup_after_fork (HANDLE parent)
int
fhandler_pipe::dup (fhandler_base *child)
{
if (get_handle ())
{
int res = fhandler_base::dup (child);
if (res)
return res;
}
fhandler_pipe *ftp = (fhandler_pipe *) child;