server: Fix list corruption caused by previous change.
This commit is contained in:
parent
396b0ad126
commit
d6f8284c2f
|
@ -517,7 +517,7 @@ static void terminate_process( struct process *process, struct thread *skip, int
|
|||
{
|
||||
struct list *ptr;
|
||||
|
||||
if (skip) /* move it to the end of the list */
|
||||
if (skip && skip->process == process) /* move it to the end of the list */
|
||||
{
|
||||
assert( skip->state != TERMINATED );
|
||||
list_remove( &skip->proc_entry );
|
||||
|
|
Loading…
Reference in New Issue