mirror of
https://github.com/haiwen/libsearpc.git
synced 2025-09-25 20:35:40 +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
|
NULL); // not overlapped I/O
|
||||||
|
|
||||||
if (!success || bytes_read != (DWORD)n) {
|
if (!success || bytes_read != (DWORD)n) {
|
||||||
|
if (GetLastError() == ERROR_BROKEN_PIPE) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
G_WARNING_WITH_LAST_ERROR("failed to read from pipe");
|
G_WARNING_WITH_LAST_ERROR("failed to read from pipe");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user