zsh-users
 help / color / mirror / code / Atom feed
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:20:00 -0700	[thread overview]
Message-ID: <d7kjhd$ti9$1@sea.gmane.org> (raw)
In-Reply-To: <1050601144728.ZM11059@candle.brasslantern.com>

What's interesting is that if I 'strace' the zsh process while it's 
stuck (after the pipe was deleted), it will terminate. I'm not sure what 
the explanation behind it is ...

Thanks.

Tim



Bart Schaefer wrote:

>On Jun 1,  7:18am, Tim K. (Gmane) wrote:
>}
>} I have a situtation with zsh: I use pine as my mail reader and it has a 
>} feature where it can create a named pipe (FIFO) and write to it when new 
>} mail arrives.
>} 
>} This all seems to work, except when I quit pine, hence terminating the 
>} main "parent" script, the child "notify" script does not exit, it's 
>} stuck reading from the pipe (even though the pipe is deleted).
>
>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.
>
>  
>


  reply	other threads:[~2005-06-01 15:27 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) [this message]
2005-06-01 15:36     ` Peter Stephenson
2005-06-01 15:45     ` Bart Schaefer
2005-06-01 15:24   ` Tim K. (Gmane)
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='d7kjhd$ti9$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).