From owner-cvs-all Tue Sep 1 12:54:45 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA13280 for cvs-all-outgoing; Tue, 1 Sep 1998 12:54:45 -0700 (PDT) (envelope-from owner-cvs-all) Received: from baerenklau.de.freebsd.org (baerenklau.de.freebsd.org [195.185.195.14]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA13201; Tue, 1 Sep 1998 12:54:31 -0700 (PDT) (envelope-from wosch@panke.de.freebsd.org) Received: (from uucp@localhost) by baerenklau.de.freebsd.org (8.8.8/8.8.8) with UUCP id VAA17886; Tue, 1 Sep 1998 21:52:28 +0200 (CEST) (envelope-from wosch@panke.de.freebsd.org) Received: (from wosch@localhost) by campa.panke.de (8.8.8/8.8.8) id TAA02612; Tue, 1 Sep 1998 19:39:15 +0200 (MET DST) (envelope-from wosch) Message-ID: <19980901193914.A2496@panke.de> Date: Tue, 1 Sep 1998 19:39:14 +0200 From: Wolfram Schneider To: Mike Smith , Wolfram Schneider Cc: =?iso-8859-1?Q?Dag-Erling_Coidan_Sm=F8rgrav?= , Wolfram Schneider , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/killall killall.pl References: <19980901130032.A1685@panke.de> <199809010915.JAA04201@word.smith.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 0.93.1i In-Reply-To: <199809010915.JAA04201@word.smith.net.au>; from Mike Smith on Tue, Sep 01, 1998 at 09:15:52AM +0000 Sender: owner-cvs-all@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk 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 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 http://www.freebsd.org/~w/