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>2003-12-08 03:21:17 +0300
committerChristopher Faylor <me@cgf.cx>2003-12-08 03:21:17 +0300
commit1c5c9a6bfb3bcfa33242904880f8880802decbb2 (patch)
tree8bc70a5ea58aec494513ac2cbfc62d48af4ba2bc /winsup/cygwin/wait.cc
parent2e008fb91f34b5a257305a1e9e42f60fb0aef81d (diff)
* spawn.cc (spawn_guts): Change type back to 'int' after erroneous change
below.
Diffstat (limited to 'winsup/cygwin/wait.cc')
-rw-r--r--winsup/cygwin/wait.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/winsup/cygwin/wait.cc b/winsup/cygwin/wait.cc
index 79c8bf64a..d3c3416ee 100644
--- a/winsup/cygwin/wait.cc
+++ b/winsup/cygwin/wait.cc
@@ -48,14 +48,13 @@ wait4 (int intpid, int *status, int options, struct rusage *r)
int res;
waitq *w;
HANDLE waitfor;
- bool sawsig;
pthread_testcancel ();
while (1)
{
sig_dispatch_pending ();
- sawsig = 0;
+ bool sawsig = false;
if (options & ~(WNOHANG | WUNTRACED))
{
set_errno (EINVAL);
@@ -73,7 +72,7 @@ wait4 (int intpid, int *status, int options, struct rusage *r)
w->rusage = r;
sigproc_printf ("calling proc_subproc, pid %d, options %d",
w->pid, w->options);
- if (!proc_subproc (PROC_WAIT, (DWORD)w))
+ if (!proc_subproc (PROC_WAIT, (DWORD) w))
{
set_errno (ENOSYS);
paranoid_printf ("proc_subproc returned 0");
@@ -101,7 +100,7 @@ wait4 (int intpid, int *status, int options, struct rusage *r)
{
call_signal_handler_now ();
set_sig_errno (EINTR);
- sawsig = 1;
+ sawsig = true;
res = -1;
}
else if (res != WAIT_OBJECT_0)