Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Jul 2015 19:44:47 +0000 (UTC)
From:      Craig Rodrigues <rodrigc@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r286093 - head/usr.bin/ipcrm
Message-ID:  <201507301944.t6UJilqi098925@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rodrigc
Date: Thu Jul 30 19:44:46 2015
New Revision: 286093
URL: https://svnweb.freebsd.org/changeset/base/286093

Log:
  Use correct number of arguments to semctl() for IPC_RMID.
  
  PR:			118292
  Submitted by:		araujo
  Differential Revision:	D2669

Modified:
  head/usr.bin/ipcrm/ipcrm.c

Modified: head/usr.bin/ipcrm/ipcrm.c
==============================================================================
--- head/usr.bin/ipcrm/ipcrm.c	Thu Jul 30 19:34:24 2015	(r286092)
+++ head/usr.bin/ipcrm/ipcrm.c	Thu Jul 30 19:44:46 2015	(r286093)
@@ -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++;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507301944.t6UJilqi098925>