aboutsummaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2020-08-27 21:48:54 +0200
committerCorinna Vinschen <corinna@vinschen.de>2020-08-28 09:44:18 +0200
commiteb3e3e47385790db463b341f47e0ca4b7b2f8dcb (patch)
tree7d136a399498122f2b619e8cb55e1f46655a627a /winsup
parent0a31ad6f4c8bf18864b0be3546b402db0a6108f7 (diff)
downloadnewlib-eb3e3e47385790db463b341f47e0ca4b7b2f8dcb.zip
newlib-eb3e3e47385790db463b341f47e0ca4b7b2f8dcb.tar.gz
newlib-eb3e3e47385790db463b341f47e0ca4b7b2f8dcb.tar.bz2
Cygwin: sigproc: return int from remove_proc
The return value is used in a numerical context and remove_proc already returned inconsistently "true" vs. 0. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/sigproc.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc
index b29835e..86c0aa1 100644
--- a/winsup/cygwin/sigproc.cc
+++ b/winsup/cygwin/sigproc.cc
@@ -63,7 +63,7 @@ HANDLE NO_COPY my_pendingsigs_evt;
/* Function declarations */
static int __reg1 checkstate (waitq *);
static __inline__ bool get_proc_lock (DWORD, DWORD);
-static bool __stdcall remove_proc (int);
+static int __stdcall remove_proc (int);
static bool __stdcall stopped_or_terminated (waitq *, _pinfo *);
static void WINAPI wait_sig (VOID *arg);
@@ -1153,7 +1153,7 @@ out:
/* Remove a proc from procs by swapping it with the last child in the list.
Also releases shared memory of exited processes. */
-static bool __stdcall
+static int __stdcall
remove_proc (int ci)
{
if (have_execed)
@@ -1162,7 +1162,7 @@ remove_proc (int ci)
procs[ci].wait_thread->terminate_thread ();
}
else if (procs[ci] && procs[ci]->exists ())
- return true;
+ return 1;
sigproc_printf ("removing procs[%d], pid %d, nprocs %d", ci, procs[ci]->pid,
nprocs);