* cygthread.cc (cygthread::terminate_thread): Wait briefly for notification
event in the event that the thread was actually in the process of exiting. * pipe.cc (fhandler_pipe::dup): read_state is not supposed to be inheritable. Fix that. * path.cc (path_conv::check): Set symlen = 0 to avoid a compiler warning. * devices.h (devices::parsedisk): Declare new function. * devices.in (devices::parsedisk): Define new function. * dtable.cc (dtable::init_std_file_from_handle): Use device numbers rather than name. * fhandler_proc.cc (format_proc_partitions): Use parsedisk to generate disk names from numeric codes. (This was broken on two of my systems previously and is still broken now)
This commit is contained in:
@@ -229,7 +229,7 @@ fhandler_pipe::dup (fhandler_base *child)
|
||||
if (read_state == NULL)
|
||||
ftp->read_state = NULL;
|
||||
else if (!DuplicateHandle (hMainProc, read_state, hMainProc,
|
||||
&ftp->read_state, 0, 1,
|
||||
&ftp->read_state, 0, 0,
|
||||
DUPLICATE_SAME_ACCESS))
|
||||
{
|
||||
debug_printf ("couldn't duplicate read_state %p, %E", read_state);
|
||||
|
Reference in New Issue
Block a user