From: "Tim K. (Gmane)" <tk-gmane+at@idpax.com>
To: zsh-users@sunsite.dk
Subject: Re: named pipes blocking zsh
Date: Wed, 01 Jun 2005 08:24:19 -0700 [thread overview]
Message-ID: <d7kjph$ugg$1@sea.gmane.org> (raw)
In-Reply-To: <1050601144728.ZM11059@candle.brasslantern.com>
Now that I think about it, what if the pine process crashed and didn't
have a chance to send an EOF or remove the pipe (assuming pine
implemented the EOF)? It seems that the read with timeout in zsh should
work, it should not just block forever even though a timeout is
specified, but maybe it's not possible to do because it's stuck in
open() not in a read call.
Thanks.
>
>I think this qualifies as a pine bug. Removing a named pipe will not
>by itself send an EOF to any processes that are listening on it. The
>right way for pine to shut down the connection would be to open the fifo,
>remove the disk file, then send a final EOF by closing the descriptor.
>
>Anything else is a race condition with the listening process, which may
>re-open the fifo for reading before pine has removed it.
>
>
>
next prev parent reply other threads:[~2005-06-01 15:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-01 14:18 Tim K. (Gmane)
2005-06-01 14:47 ` Bart Schaefer
2005-06-01 15:20 ` Tim K. (Gmane)
2005-06-01 15:36 ` Peter Stephenson
2005-06-01 15:45 ` Bart Schaefer
2005-06-01 15:24 ` Tim K. (Gmane) [this message]
2005-06-01 14:47 ` 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='d7kjph$ugg$1@sea.gmane.org' \
--to=tk-gmane+at@idpax.com \
--cc=zsh-users@sunsite.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).