mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-13 04:29:09 +08:00
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>
This commit is contained in:
parent
4b2f06afef
commit
754d518649
@ -63,7 +63,7 @@ HANDLE NO_COPY my_pendingsigs_evt;
|
|||||||
/* Function declarations */
|
/* Function declarations */
|
||||||
static int __reg1 checkstate (waitq *);
|
static int __reg1 checkstate (waitq *);
|
||||||
static __inline__ bool get_proc_lock (DWORD, DWORD);
|
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 bool __stdcall stopped_or_terminated (waitq *, _pinfo *);
|
||||||
static void WINAPI wait_sig (VOID *arg);
|
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.
|
/* Remove a proc from procs by swapping it with the last child in the list.
|
||||||
Also releases shared memory of exited processes. */
|
Also releases shared memory of exited processes. */
|
||||||
static bool __stdcall
|
static int __stdcall
|
||||||
remove_proc (int ci)
|
remove_proc (int ci)
|
||||||
{
|
{
|
||||||
if (have_execed)
|
if (have_execed)
|
||||||
@ -1162,7 +1162,7 @@ remove_proc (int ci)
|
|||||||
procs[ci].wait_thread->terminate_thread ();
|
procs[ci].wait_thread->terminate_thread ();
|
||||||
}
|
}
|
||||||
else if (procs[ci] && procs[ci]->exists ())
|
else if (procs[ci] && procs[ci]->exists ())
|
||||||
return true;
|
return 1;
|
||||||
|
|
||||||
sigproc_printf ("removing procs[%d], pid %d, nprocs %d", ci, procs[ci]->pid,
|
sigproc_printf ("removing procs[%d], pid %d, nprocs %d", ci, procs[ci]->pid,
|
||||||
nprocs);
|
nprocs);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user