Date: Tue, 1 Sep 1998 19:39:14 +0200 From: Wolfram Schneider <wosch@panke.de.freebsd.org> To: Mike Smith <mike@smith.net.au>, Wolfram Schneider <wosch@panke.de.freebsd.org> Cc: =?iso-8859-1?Q?Dag-Erling_Coidan_Sm=F8rgrav?= <dag-erli@ifi.uio.no>, Wolfram Schneider <wosch@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/killall killall.pl Message-ID: <19980901193914.A2496@panke.de> In-Reply-To: <199809010915.JAA04201@word.smith.net.au>; from Mike Smith on Tue, Sep 01, 1998 at 09:15:52AM %2B0000 References: <19980901130032.A1685@panke.de> <199809010915.JAA04201@word.smith.net.au>
next in thread | previous in thread | raw e-mail | index | archive | help
On 1998-09-01 09:15:52 +0000, Mike Smith wrote: > > On 1998-09-01 12:49:22 +0200, Dag-Erling Coidan Smørgrav wrote: > > > Wolfram Schneider <wosch@FreeBSD.ORG> writes: > > > > Log: > > > > PR: bin/5596 > > > > > > > > Change the diagnostic if there were no matching processes owned by > > > > you. > > > > > > Hmm, IMHO the old diagnostic was good enough. > > > > It was a minor change. For example > > > > old: > > $ /usr/bin/killall getty > > No matching processes ``getty'' > > > > new: > > $ perl ./killall.pl getty > > No matching processes ``getty'' belonging to you > > It's incorrect if you're root, No. # perl killall.pl foobar No matching processes ``foobar'' # perl killall.pl -s mutt kill -TERM 2496 (my current mail reader) >and still grammatically incorrect. Write a PR or reopen bin/5596 again. How should I know whats correct? > Functionality should also move to 'kill', where the pattern should be a > legitimate alternative to a PID. Ah, and you want patch all shell builtin kill versions (bash, csh etc.)? > # kill -TERM init > Cannot send signal to 'init': permission denied. It was a design decision in killall to sent signals only to your own processes. > # kill -TERM foo > Cannot send signal to 'foo': no such process. > > (You might omit this one:) > > # kill -v -HUP httpd > Could not send signal to some processes matching 'httpd': permission denied. And what should be the exit value in this example? killall killed your httpd processes, but cannot kill the httpd processes from user `foo'? -- Wolfram Schneider <wosch@freebsd.org> http://www.freebsd.org/~w/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980901193914.A2496>