summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/wait.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2009-06-14 05:38:55 +0000
committerChristopher Faylor <me@cgf.cx>2009-06-14 05:38:55 +0000
commit6a712635dd1de131634c5db1cd5b9221a6544ec6 (patch)
tree2b5b0975af5d2601d1d6e1ef16ff487c03b77715 /winsup/cygwin/wait.cc
parent792c564b27fc4b79f2e2936acc8e09ec3d1e7f39 (diff)
downloadcygnal-6a712635dd1de131634c5db1cd5b9221a6544ec6.tar.gz
cygnal-6a712635dd1de131634c5db1cd5b9221a6544ec6.tar.bz2
cygnal-6a712635dd1de131634c5db1cd5b9221a6544ec6.zip
* fhandler.cc (fhandler_base::wait_overlapped): Honor nonblocking flag for
writes. Don't reset event handle when we see a ERROR_IO_PENDING. * sigproc.cc (stopped_or_terminated): Use bool constants for consistency. * wait.cc (wait4): Remove nonsensical comment.
Diffstat (limited to 'winsup/cygwin/wait.cc')
-rw-r--r--winsup/cygwin/wait.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/winsup/cygwin/wait.cc b/winsup/cygwin/wait.cc
index 8fc7f981c..772b5cc88 100644
--- a/winsup/cygwin/wait.cc
+++ b/winsup/cygwin/wait.cc
@@ -100,8 +100,6 @@ wait4 (int intpid, int *status, int options, struct rusage *r)
}
else if (res != WAIT_OBJECT_0)
{
- /* We shouldn't set errno to any random value if we can help it.
- See the Posix manual for a list of valid values for `errno'. */
set_errno (EINVAL);
res = -1;
}