zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: Shell exits on bad coproc redirection
Date: Fri, 17 Aug 2001 15:42:51 +0000	[thread overview]
Message-ID: <1010817154252.ZM14094@candle.brasslantern.com> (raw)

This affects 3.0.8 and 4.0.1 as well as 4.1.0-dev-1, but NOT 3.0.6.

schaefer[503] Src/zsh -f
zagzig% echo $ZSH_VERSION
4.1.0-dev-1
zagzig% print >&p
zsh: coprocess: bad file descriptor
zagzig% coproc sleep 1
[1] 14033
zagzig% 
[1]  + done       sleep 1
zagzig% print >&p
schaefer[504] echo $?
141

So the shell is dying of a SIGPIPE.

The problem seems to be a combination of these two items (ChangeLog-3.1):

1999-10-10  Bart Schaefer  <schaefer@zsh.org>

        * Src/exec.c: Plug lead of a copy of the coproc input descriptor.

(ahem, that should say "leak").

Sun May 18 18:57:08 1997  Zolt<E1>n Hidv<E9>gi  <hzoli@cs.elte.hu>

        * Src/builtin.c, Src/exec.c, Src/init.c, Src/signals.c, Src/jobs.c:
          Do not handle SIGPIPE specially for shells with job control

Anybody remember why we stopped handling SIGPIPE?  Is Zoltan still out there
anywhere?

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


             reply	other threads:[~2001-08-17 15:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-17 15:42 Bart Schaefer [this message]
2001-08-17 16:05 ` Peter Stephenson
2001-08-17 16:34   ` Bart Schaefer
2001-08-23  1:34 ` Geoff Wing

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=1010817154252.ZM14094@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@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).