* pipe.cc (fhandler_pipe::dup): Don't dup input_handle if it doesn't exist.
This commit is contained in:
parent
ca04f61fc7
commit
ff3ef36d88
|
@ -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
|
||||
|
|
|
@ -133,9 +133,12 @@ fhandler_pipe::fixup_after_fork (HANDLE parent)
|
|||
int
|
||||
fhandler_pipe::dup (fhandler_base *child)
|
||||
{
|
||||
int res = fhandler_base::dup (child);
|
||||
if (res)
|
||||
return res;
|
||||
if (get_handle ())
|
||||
{
|
||||
int res = fhandler_base::dup (child);
|
||||
if (res)
|
||||
return res;
|
||||
}
|
||||
|
||||
fhandler_pipe *ftp = (fhandler_pipe *) child;
|
||||
|
||||
|
|
Loading…
Reference in New Issue