From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 30292 invoked from network); 7 Dec 2020 15:46:30 -0000 Received: from ewsd.inri.net (107.191.116.128) by inbox.vuxu.org with ESMTPUTF8; 7 Dec 2020 15:46:30 -0000 Received: from mimir.eigenstate.org ([206.124.132.107]) by ewsd; Mon Dec 7 10:44:16 -0500 2020 Received: from abbatoir.fios-router.home (pool-74-101-2-6.nycmny.fios.verizon.net [74.101.2.6]) by mimir.eigenstate.org (OpenSMTPD) with ESMTPSA id fe1aca5a (TLSv1.2:ECDHE-RSA-AES256-SHA:256:NO); Mon, 7 Dec 2020 07:43:55 -0800 (PST) Message-ID: To: sirjofri+ml-9front@sirjofri.de To: 9front@9front.org Date: Mon, 07 Dec 2020 07:43:53 -0800 From: ori@eigenstate.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: virtual database information core-aware solution Subject: Re: [9front] patch: tweak plumb support Reply-To: 9front@9front.org Precedence: bulk I wonder if this'd better be done with a more complex plumb rule, Quoth sirjofri+ml-9front@sirjofri.de: > diff -r 2647ea8b9793 sys/man/1/tweak > --- a/sys/man/1/tweak Sun Dec 06 21:52:01 2020 +0100 > +++ b/sys/man/1/tweak Mon Dec 07 10:38:50 2020 +0100 > @@ -155,6 +155,18 @@ > Quit > .IR tweak . > The program will complain once about modified but unwritten files. > +.PP > +.I Tweak > +listens to the > +.I plumber > +channel > +.B imageedit > +for filenames as well as image data. Plumbed image data is stored as files in > +.B /tmp > +and is > +.I not > +cleaned after exiting > I don't think leaving trash in /tmp is really acceptable :/ + file = smprint("/tmp/tweaktmp.%d", rand()); Use the pid, that way you know nobody else is using it, and you can get rid of the retry loop.