Use correct number of arguments to semctl() for IPC_RMID.
PR: 118292 Submitted by: araujo Differential Revision: D2669
This commit is contained in:
parent
f5827b16eb
commit
4ed2d460bd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=286093
@ -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