patch-2.3.50 linux/ipc/sem.c

Next file: linux/ipc/shm.c
Previous file: linux/include/video/fbcon-hga.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.49/linux/ipc/sem.c linux/ipc/sem.c
@@ -309,7 +309,7 @@
 	for (q = sma->sem_pending; q; q = q->next) {
 			
 		if (q->status == 1)
-			return; /* wait for other process */
+			continue;	/* this one was woken up before */
 
 		error = try_atomic_semop(sma, q->sops, q->nsops,
 					 q->undo, q->pid, q->alter);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)