mirror of
https://github.com/haiwen/libsearpc.git
synced 2025-09-25 12:32:53 +00:00
Improved named pipe transport on windows.
This commit is contained in:
@@ -499,6 +499,9 @@ ssize_t pipe_read_n (SearpcNamedPipe fd, void *vptr, size_t n)
|
||||
NULL); // not overlapped I/O
|
||||
|
||||
if (!success || bytes_read != (DWORD)n) {
|
||||
if (GetLastError() == ERROR_BROKEN_PIPE) {
|
||||
return 0;
|
||||
}
|
||||
G_WARNING_WITH_LAST_ERROR("failed to read from pipe");
|
||||
return -1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user