1
0
mirror of https://github.com/haiwen/libsearpc.git synced 2025-09-24 19:56:52 +00:00

Improved named pipe transport on windows.

This commit is contained in:
Shuai Lin
2016-06-28 15:31:42 +08:00
parent de84634c66
commit 28619641b8

View File

@@ -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;
}