* ntdll.h (FILE_PIPE_*): Define constants.
* select.cc (pipe_data_available): Detect closing state.
This commit is contained in:
@@ -524,7 +524,7 @@ pipe_data_available (int fd, fhandler_base *fh, HANDLE h, bool writing)
|
||||
res = true;
|
||||
}
|
||||
}
|
||||
return res;
|
||||
return res ?: -!!(fpli.NamedPipeState & FILE_PIPE_CLOSING_STATE);
|
||||
}
|
||||
|
||||
static int
|
||||
|
Reference in New Issue
Block a user