* cygthread.cc (cygthread::detach): Make error message a little more detailed.
* fhandler.cc (fhandler_base::raw_read): Ditto for debug message. * dcrt0.cc (do_exit): Add some more synchronization tests. * fhandler_fifo.cc (fhandler_fifo::dup): Don't duplicate a nonexistent handle. Use derived return value rather than always retuning 0. * fhandler_netdrive.cc (fhandler_netdrive::exists): Wnet -> WNet. * winsup.h (exit_states): Add a couple of new exit states.
This commit is contained in:
@@ -184,14 +184,15 @@ fhandler_fifo::dup (fhandler_base *child)
|
||||
if (!res)
|
||||
{
|
||||
fhandler_fifo *ff = (fhandler_fifo *) child;
|
||||
if (!DuplicateHandle (hMainProc, get_output_handle (), hMainProc,
|
||||
&ff->get_output_handle (), false, true,
|
||||
DUPLICATE_SAME_ACCESS))
|
||||
if (get_output_handle ()
|
||||
&& !DuplicateHandle (hMainProc, get_output_handle (), hMainProc,
|
||||
&ff->get_output_handle (), false, true,
|
||||
DUPLICATE_SAME_ACCESS))
|
||||
{
|
||||
__seterrno ();
|
||||
child->close ();
|
||||
res = -1;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
return res;
|
||||
}
|
||||
|
Reference in New Issue
Block a user