2015-07-31 3:44 GMT+08:00 Craig Rodrigues <[email protected]>: > 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++; > _______________________________________________ > [email protected] mailing list > http://lists.freebsd.org/mailman/listinfo/svn-src-head > To unsubscribe, send any mail to "[email protected]" >
Nice, thank you very much! All the best. -- -- Marcelo Araujo (__)[email protected] \\\'',)http://www.FreeBSD.org <http://www.freebsd.org/> \/ \ ^ Power To Server. .\. /_) _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "[email protected]"
