From nobody Tue Sep 7 23:20:30 2021 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id DF0C917BF9F1 for ; Tue, 7 Sep 2021 23:21:52 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from omta001.cacentral1.a.cloudfilter.net (omta001.cacentral1.a.cloudfilter.net [3.97.99.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4H41W45hfrz3n0w for ; Tue, 7 Sep 2021 23:21:52 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from shw-obgw-4001a.ext.cloudfilter.net ([10.228.9.142]) by cmsmtp with ESMTP id Ne23mBm2lczbLNkPYmPSIi; Tue, 07 Sep 2021 23:21:52 +0000 Received: from spqr.komquats.com ([70.66.148.124]) by cmsmtp with ESMTPA id NkPWmZG6uU9pxNkPXmQLP6; Tue, 07 Sep 2021 23:21:52 +0000 X-Authority-Analysis: v=2.4 cv=Bbi7bph2 c=1 sm=1 tr=0 ts=6137f410 a=Cwc3rblV8FOMdVN/wOAqyQ==:117 a=Cwc3rblV8FOMdVN/wOAqyQ==:17 a=IkcTkHD0fZMA:10 a=7QKq2e-ADPsA:10 a=YxBL1-UpAAAA:8 a=6I5d2MoRAAAA:8 a=qFSmBd4IDbBuJr8jT88A:9 a=QEXdDO2ut3YA:10 a=Ia-lj3WSrqcvXOmTRaiG:22 a=IjZwj45LgO3ly-622nXo:22 Received: from [127.0.0.1] (unknown [209.52.88.199]) by spqr.komquats.com (Postfix) with ESMTPSA id 7B8CB5F4; Tue, 7 Sep 2021 16:21:49 -0700 (PDT) Date: Tue, 07 Sep 2021 16:20:30 -0700 From: Cy Schubert To: freebsd-current@freebsd.org, Steve Kargl Subject: Re: killall, symlinks, and signal delivery? In-Reply-To: <20210907224242.GA19450@troutmask.apl.washington.edu> References: <20210907224242.GA19450@troutmask.apl.washington.edu> Message-ID: <6C88F561-B045-4D09-B61D-D91096AF0C4B@cschubert.com> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-CMAE-Envelope: MS4xfI36hZBMMwP7QRMBGdrbGD0MlH+U5Cnpm2EOClXTTgO+EHcX+Vm06/kVXUA4XwRZkmBwX3Re9aT0EdS+2Dj7XRKQ2TlCSm1IHZioJFaXq7agHSaMef2g xm/vHKyWcC+1nRRW0X6J0nXJpmYA1wcN06x8ofnMS4h2JMkUdEni5CuPnf4F83opc6dg8D7UcyhgLexmkaUZB36dL54ND0FesTqgqc2YQwo9cpJsQr7d4Jb4 wRkGUKRqe7lZuTBjfS4SJhROVJTzhb8SAfxa6brNPlk= X-Rspamd-Queue-Id: 4H41W45hfrz3n0w X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On September 7, 2021 3:42:53 PM PDT, Steve Kargl wrote: >I have stumbled about a quandry, which I hope someone >can shed some light upon=2E In my day job, I often >generate a sequence of images and display these images >with ImageMagick's display command=2E From my csh prompt, >a quick and dirty foreach() loop > >% foreach i (*=2Epng) >> display $i & >> sleep 3 >> end > >Instead of moving the cursor to each image and hitting >'q' to close the images=2E I normally kill all of the >processes at one time=2E This used to work: > >% killall display > >Now I geit, for example,=20 > >% display z=2Emiff & >% killall display >No matching processes belonging to you were found >% ps -Ukargl | grep display >19463 1 S 0:00=2E02 display z=2Emiff (magick) >19465 1 S+ 0:00=2E00 grep display >% ls -l /usr/local/bin/display=20 >lrwxr-xr-x 1 root wheel - 6 Jun 1 14:18 /usr/local/bin/display@ -> ma= gick > >So, there are two possibilities: >(1) display was once an independent program and not a > symlink to magick=2E Thus, killall just worked=2E Or, >(2) killall no longer works because command associated > with process 19463 is not really 'display' and the > symlink isn't resolved to actually kill 'magick'=2E > >So, just chekcing (2), here=2E Is this a change in behvior >for FreeBSD? > It's likely your app is replacing its process name (argv[0]) to something = else=2E ps auxww may give you a hint what it might be now=2E --=20 Pardon the typos and autocorrect, small keyboard in use=2E=20 Cy Schubert FreeBSD UNIX: Web: https://www=2EFreeBSD=2Eorg The need of the many outweighs the greed of the few=2E Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E