* pipe.cc (fhandler_pipe::dup): Don't dup input_handle if it doesn't exist.
This commit is contained in:
		| @@ -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> | 2003-03-22  Christopher Faylor  <cgf@redhat.com> | ||||||
|  |  | ||||||
| 	* syscalls.cc (unlink): Be more defensive when SetFileAttributes is | 	* syscalls.cc (unlink): Be more defensive when SetFileAttributes is | ||||||
|   | |||||||
| @@ -133,9 +133,12 @@ fhandler_pipe::fixup_after_fork (HANDLE parent) | |||||||
| int | int | ||||||
| fhandler_pipe::dup (fhandler_base *child) | fhandler_pipe::dup (fhandler_base *child) | ||||||
| { | { | ||||||
|   int res = fhandler_base::dup (child); |   if (get_handle ()) | ||||||
|   if (res) |     { | ||||||
|     return res; |       int res = fhandler_base::dup (child); | ||||||
|  |       if (res) | ||||||
|  | 	return res; | ||||||
|  |     } | ||||||
|  |  | ||||||
|   fhandler_pipe *ftp = (fhandler_pipe *) child; |   fhandler_pipe *ftp = (fhandler_pipe *) child; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user