From owner-svn-src-head@freebsd.org Thu Jun 4 13:12:09 2020 Return-Path: Delivered-To: svn-src-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0BD602F23C2; Thu, 4 Jun 2020 13:12:09 +0000 (UTC) (envelope-from freebsd@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49d5lr1cS7z3Vcy; Thu, 4 Jun 2020 13:12:07 +0000 (UTC) (envelope-from freebsd@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (localhost [127.0.0.1]) by gndrsh.dnsmgr.net (8.13.3/8.13.3) with ESMTP id 054DC6PB026051; Thu, 4 Jun 2020 06:12:06 -0700 (PDT) (envelope-from freebsd@gndrsh.dnsmgr.net) Received: (from freebsd@localhost) by gndrsh.dnsmgr.net (8.13.3/8.13.3/Submit) id 054DC5gj026050; Thu, 4 Jun 2020 06:12:05 -0700 (PDT) (envelope-from freebsd) From: "Rodney W. Grimes" Message-Id: <202006041312.054DC5gj026050@gndrsh.dnsmgr.net> Subject: Re: svn commit: r361783 - head/usr.bin/killall In-Reply-To: <9f04697e-91d9-1221-2c8f-136fdf564f5d@grosbein.net> To: Eugene Grosbein Date: Thu, 4 Jun 2020 06:12:05 -0700 (PDT) CC: Benjamin Kaduk , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Reply-To: rgrimes@freebsd.org X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: 49d5lr1cS7z3Vcy X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd@gndrsh.dnsmgr.net has no SPF policy when checking 69.59.192.140) smtp.mailfrom=freebsd@gndrsh.dnsmgr.net X-Spamd-Result: default: False [0.83 / 15.00]; HAS_REPLYTO(0.00)[rgrimes@freebsd.org]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.11)[-0.108]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MIME_GOOD(-0.10)[text/plain]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; DMARC_NA(0.00)[dnsmgr.net]; AUTH_NA(1.00)[]; RCPT_COUNT_FIVE(0.00)[5]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.03)[-0.026]; NEURAL_SPAM_LONG(0.06)[0.062]; RCVD_TLS_LAST(0.00)[]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:13868, ipnet:69.59.192.0/19, country:US]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jun 2020 13:12:09 -0000 > 04.06.2020 11:29, Benjamin Kaduk wrote: > > > Author: bjk (doc committer) > > Date: Thu Jun 4 04:29:43 2020 > > New Revision: 361783 > > URL: https://svnweb.freebsd.org/changeset/base/361783 > > > > Log: > > Add EXAMPLES to killall(1) > > > > Submitted by: fernape > > Differential Revision: https://reviews.freebsd.org/D25002 > > > > Modified: > > head/usr.bin/killall/killall.1 > > > > Modified: head/usr.bin/killall/killall.1 > > ============================================================================== > > --- head/usr.bin/killall/killall.1 Thu Jun 4 02:36:41 2020 (r361782) > > +++ head/usr.bin/killall/killall.1 Thu Jun 4 04:29:43 2020 (r361783) > > @@ -145,6 +145,50 @@ utility exits 0 if some processes have been found and > > signalled successfully. > > Otherwise, a status of 1 will be > > returned. > > +.Sh EXAMPLES > > +Send > > +.Dv SIGTERM > > +to all firefox processes: > > +.Bd -literal -offset indent > > +killall firefox > > +.Ed > > +.Pp > > +Send > > +.Dv SIGTERM > > +to firefox processes belonging to > > +.Va USER : > > +.Bd -literal -offset indent > > +killall -u ${USER} firefox > > +.Ed > > +.Pp > > +Stop all firefox processes: > > +.Bd -literal -offset indent > > +killall -SIGSTOP firefox > > +.Ed > > +.Pp > > +Resume firefox processes: > > +.Bd -literal -offset indent > > +killall -SIGCONT firefox > > +.Ed > > +.Pp > > +Show what would be done to firefox processes, but do not actually signal them: > > +.Bd -literal -offset indent > > +killall -s firefox > > +.Ed > > +.Pp > > +Send > > +.Dv SIGKILL > > +to csh process running inside jail ID 282: > > +.Bd -literal -offset indent > > +killall -9 -j282 csh > > +.Ed > > +.Pp > > +Send > > +.Dv SIGTERM > > +to all processes matching provided pattern (like vim and vimdiff): > > +.Bd -literal -offset indent > > +killall -m 'vim*' > > +.Ed > > .Sh DIAGNOSTICS > > Diagnostic messages will only be printed if requested by > > .Fl d > > "Firefox" is a trade mark (type of intellectual property) of Mozilla Foundation. > Is it OK for us to use this name such way? > > Isn't it better using a name of some utility we have in the base system like systat(1) ? Purley out of simple safety I agree here. Though I doubt a case could be made for infringement it is just too easy to do the safe thing. -- Rod Grimes rgrimes@freebsd.org