* dll_init.cc (dll_list::append): Eliminate increment of unused tot variable.
* dll_init.h (dll_list::tot): Delete. (dll_list::populate_all_deps): Delete undefined function. * fhandler.cc (fhandler_base_overlapped::wait_overlapped): Move EPIPE handling under error condition.
This commit is contained in:
@ -1887,13 +1887,15 @@ fhandler_base_overlapped::wait_overlapped (bool inres, bool writing, DWORD *byte
|
||||
HANDLE h = writing ? get_output_handle () : get_handle ();
|
||||
CancelIo (h);
|
||||
ResetEvent (get_overlapped ());
|
||||
if (res == overlapped_error)
|
||||
__seterrno_from_win_error (err);
|
||||
*bytes = (DWORD) -1;
|
||||
if (res == overlapped_error)
|
||||
{
|
||||
__seterrno_from_win_error (err);
|
||||
if (writing && (err == ERROR_NO_DATA || err == ERROR_BROKEN_PIPE))
|
||||
raise (SIGPIPE);
|
||||
}
|
||||
}
|
||||
|
||||
if (writing && (err == ERROR_NO_DATA || err == ERROR_BROKEN_PIPE))
|
||||
raise (SIGPIPE);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user