Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2011-06-04 05:06:17 +0400
committerChristopher Faylor <me@cgf.cx>2011-06-04 05:06:17 +0400
commit665f9a59a412731a6262e953b7b76f93a2ce13c8 (patch)
tree2b2ded40fd3e30c6707a3b4cddbd8fba182d1f47 /winsup/cygwin/select.cc
parentcb353ff36f5283fae953d15e6bca338f5ca2ddc1 (diff)
* ntdll.h (FILE_PIPE_*): Define constants.
* select.cc (pipe_data_available): Detect closing state.
Diffstat (limited to 'winsup/cygwin/select.cc')
-rw-r--r--winsup/cygwin/select.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/select.cc b/winsup/cygwin/select.cc
index 7197ed117..6a827f70d 100644
--- a/winsup/cygwin/select.cc
+++ b/winsup/cygwin/select.cc
@@ -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