From: ori@eigenstate.org
To: sirjofri+ml-9front@sirjofri.de
To: 9front@9front.org
Subject: Re: [9front] patch: tweak plumb support
Date: Mon, 07 Dec 2020 07:43:53 -0800 [thread overview]
Message-ID: <BB61CF73F57F046491F302C46570C266@eigenstate.org> (raw)
In-Reply-To: <FF940F599E8115FAA8E682076DCE2EF0@sirjofri.de>
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.
next prev parent reply other threads:[~2020-12-07 15:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-04 10:30 sirjofri+ml-9front
2020-12-04 10:47 ` sirjofri+ml-9front
2020-12-05 15:13 ` sirjofri+ml-9front
2020-12-07 9:44 ` sirjofri+ml-9front
2020-12-07 15:43 ` ori [this message]
2020-12-07 20:26 ` sirjofri+ml-9front
2020-12-21 15:34 ` sirjofri+ml-9front
2021-01-12 10:12 sirjofri
2021-01-13 22:06 ` ori
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BB61CF73F57F046491F302C46570C266@eigenstate.org \
--to=ori@eigenstate.org \
--cc=9front@9front.org \
--cc=sirjofri+ml-9front@sirjofri.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).