Use correct number of arguments to semctl() for IPC_RMID.
PR: 118292 Submitted by: araujo Differential Revision: D2669
This commit is contained in:
parent
ce02aeb9eb
commit
110b4521d0
@ -169,7 +169,7 @@ semrm(key_t key, int id)
|
||||
if ((kxsema[num].u.sem_perm.mode & SEM_ALLOC) != 0) {
|
||||
id = IXSEQ_TO_IPCID(num,
|
||||
kxsema[num].u.sem_perm);
|
||||
if (semctl(id, IPC_RMID, NULL) < 0) {
|
||||
if (semctl(id, 0, IPC_RMID, NULL) < 0) {
|
||||
if (rmverbose > 1)
|
||||
warn("semid(%d): ", id);
|
||||
errflg++;
|
||||
|
Loading…
Reference in New Issue
Block a user