Fixed process_signaled (thanks to Uwe Bonnes).
This commit is contained in:
parent
114d9d18fb
commit
dbc033a261
|
@ -160,7 +160,7 @@ static void process_dump( struct object *obj, int verbose )
|
||||||
static int process_signaled( struct object *obj, struct thread *thread )
|
static int process_signaled( struct object *obj, struct thread *thread )
|
||||||
{
|
{
|
||||||
struct process *process = (struct process *)obj;
|
struct process *process = (struct process *)obj;
|
||||||
return (process->running_threads > 0);
|
return !process->running_threads;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* get a process from an id (and increment the refcount) */
|
/* get a process from an id (and increment the refcount) */
|
||||||
|
|
Loading…
Reference in New Issue