vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| > Date: Wed, 20 Feb 2008 16:57:23 -0300 > From: Gleydson Soares <gsoares@gmail.com> > > warn on stdout,when not found process Since pkill(1) doesn't do that on Solaris and Linux, I don't think we want this. > Index: pkill.c > ================================================== ================= > RCS file: /cvs/src/usr.bin/pkill/pkill.c,v > retrieving revision 1.16 > diff -u -r1.16 pkill.c > --- pkill.c 7 Feb 2008 15:38:07 -0000 1.16 > +++ pkill.c 20 Feb 2008 19:56:33 -0000 > @@ -418,6 +418,10 @@ > else if (rv != STATUS_ERROR) > rv = STATUS_MATCH; > } > + > + if (rv == STATUS_NOMATCH) > + errx(rv,"no such process"); > + > if (pgrep && j) > putchar('\n'); |