From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1323 invoked from network); 17 Aug 2001 15:43:05 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 17 Aug 2001 15:43:05 -0000 Received: (qmail 4724 invoked by alias); 17 Aug 2001 15:42:58 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15656 Received: (qmail 4713 invoked from network); 17 Aug 2001 15:42:56 -0000 From: Bart Schaefer Message-Id: <1010817154252.ZM14094@candle.brasslantern.com> Date: Fri, 17 Aug 2001 15:42:51 +0000 X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.dk Subject: Shell exits on bad coproc redirection MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 * 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 Zoltn Hidvgi * 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