Use correct number of arguments to semctl() for IPC_RMID.

PR:			118292
Submitted by:		araujo
Differential Revision:	D2669
This commit is contained in:
rodrigc 2015-07-30 19:44:46 +00:00
parent ce02aeb9eb
commit 110b4521d0

View File

@ -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++;