* ntdll.h (FILE_PIPE_*): Define constants.

* select.cc (pipe_data_available): Detect closing state.
This commit is contained in:
Christopher Faylor
2011-06-04 01:06:17 +00:00
parent cb353ff36f
commit 665f9a59a4
3 changed files with 14 additions and 1 deletions

View File

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