server: Fix list corruption caused by previous change.
diff --git a/server/process.c b/server/process.c
index b66e492..217710a 100644
--- a/server/process.c
+++ b/server/process.c
@@ -517,7 +517,7 @@
 {
     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 );