From: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
To: "Peter Stephenson" <pws@cambridgesiliconradio.com>,
"Zsh hackers list" <zsh-workers@sunsite.auc.dk>
Subject: RE: FIFOs again
Date: Wed, 24 May 2000 16:16:29 +0400 [thread overview]
Message-ID: <000001bfc579$e40a53e0$21c9ca95@mow.siemens.ru> (raw)
In-Reply-To: <0FT0004DUNHOXH@la-la.cambridgesiliconradio.com>
As you intend to release 3.1.7, can we try to sort this out before?
First, current docs are a bit incorrect. Shell passes FIFO or /dev/fd/n,
which is in reality pipe (if I understand implementation correctly). So,
both are not seekable, while docs imply, that only FIFO case is not.
And more about FIFO case.
>
> % echo <(echo foo)
>
> Here the parent shell can, with the wind in the right
> direction, get back
> and delete the file named by the <(...) before the child has
> had a chance
> to open it (let alone call the code to fill it).
....
>
> One good reason not to worry about this is that if the
> process actually
> opens the fifo, that's guaranteed not to happen, i.e.
>
> % cat <(echo foo)
>
> always works.
>
Yes, I agree. This should not be an issue.
>
> The second thing is a killer, at least without a rethink. In the case
> first shown, where the fifo is never opened, but this time does still
> exist, the zsh just hangs on for ever waiting for it and sits around
> uselessly in the process table.
Yes, I got the same. Real nasty. One possibility is "dummy open" in
parent. The child hangs because it tries to open FIFO without
counterpart. Parent can simply open it and then close when child exits
or we're done with current commmand (it currently have to delete FIFO
anyway).
-andrej
next prev parent reply other threads:[~2000-05-24 12:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-04-14 17:05 FIFOs Peter Stephenson
2000-04-17 10:03 ` FIFOs Andrej Borsenkow
2000-04-17 10:47 ` PATCH: FIFOs Peter Stephenson
2000-04-24 3:31 ` FIFOs Bart Schaefer
2000-05-24 12:16 ` Andrej Borsenkow [this message]
2000-05-24 12:43 ` FIFOs again Andrej Borsenkow
2000-05-24 13:34 ` Peter Stephenson
2000-05-24 16:23 ` Andrej Borsenkow
2000-05-25 15:47 ` Bart Schaefer
2000-05-24 12:57 ` Peter Stephenson
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='000001bfc579$e40a53e0$21c9ca95@mow.siemens.ru' \
--to=andrej.borsenkow@mow.siemens.ru \
--cc=pws@cambridgesiliconradio.com \
--cc=zsh-workers@sunsite.auc.dk \
/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.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
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).