Date: Fri, 31 Jul 2015 09:37:37 +0800 From: Marcelo Araujo <araujobsdport@gmail.com> To: Craig Rodrigues <rodrigc@freebsd.org> Cc: "src-committers@freebsd.org" <src-committers@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "svn-src-head@freebsd.org" <svn-src-head@freebsd.org> Subject: Re: svn commit: r286093 - head/usr.bin/ipcrm Message-ID: <CAOfEmZg5VPOam=gfznL16mfJjda=V8sa04SHrQ8UAQ8JgDPsjw@mail.gmail.com> In-Reply-To: <201507301944.t6UJilqi098925@repo.freebsd.org> References: <201507301944.t6UJilqi098925@repo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
2015-07-31 3:44 GMT+08:00 Craig Rodrigues <rodrigc@freebsd.org>: > 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++; > _______________________________________________ > svn-src-head@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/svn-src-head > To unsubscribe, send any mail to "svn-src-head-unsubscribe@freebsd.org" > Nice, thank you very much! All the best. -- -- Marcelo Araujo (__)araujo@FreeBSD.org \\\'',)http://www.FreeBSD.org <http://www.freebsd.org/> \/ \ ^ Power To Server. .\. /_)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOfEmZg5VPOam=gfznL16mfJjda=V8sa04SHrQ8UAQ8JgDPsjw>