* 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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user