patch-2.0.16 linux/ipc/sem.c
Next file: linux/ipc/shm.c
Previous file: linux/ipc/msg.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Sat Aug 31 16:49:47 1996
- Orig file:
v2.0.15/linux/ipc/sem.c
- Orig date:
Fri Jun 16 20:03:03 1995
diff -u --recursive --new-file v2.0.15/linux/ipc/sem.c linux/ipc/sem.c
@@ -103,8 +103,7 @@
if (!sma) {
semary[id] = (struct semid_ds *) IPC_UNUSED;
used_sems -= nsems;
- if (sem_lock)
- wake_up (&sem_lock);
+ wake_up (&sem_lock);
return -ENOMEM;
}
memset (sma, 0, size);
@@ -124,8 +123,7 @@
max_semid = id;
used_semids++;
semary[id] = sma;
- if (sem_lock)
- wake_up (&sem_lock);
+ wake_up (&sem_lock);
return (unsigned int) sma->sem_perm.seq * SEMMNI + id;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov