From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7371 invoked from network); 25 Jun 1999 09:17:55 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 25 Jun 1999 09:17:55 -0000 Received: (qmail 7522 invoked by alias); 25 Jun 1999 09:17:37 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6845 Received: (qmail 7515 invoked from network); 25 Jun 1999 09:17:36 -0000 From: "Bart Schaefer" Message-Id: <990625091702.ZM4017@candle.brasslantern.com> Date: Fri, 25 Jun 1999 09:17:02 +0000 In-Reply-To: <199906250622.IAA32689@beta.informatik.hu-berlin.de> Comments: In reply to Sven Wischnowsky "Re: 3.0.6-pre-5 problem" (Jun 25, 8:22am) References: <199906250622.IAA32689@beta.informatik.hu-berlin.de> X-Mailer: Z-Mail (5.0.0 30July97) To: Sven Wischnowsky , zsh-workers@sunsite.auc.dk Subject: Re: 3.0.6-pre-5 problem MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jun 25, 8:22am, Sven Wischnowsky wrote: } Subject: Re: 3.0.6-pre-5 problem } } And, of course, I have 6819 applied (which fixed a problem with } suspending shell functions, although that problem didn't cause a } SEGV). It looks like the following hunk of 6819 fixes the crash by *not* assigning a process ID to jn->other; however, the xterm still hangs ... I think zsh may have sent a STOP signal to the xterm that is its parent. @@ -959,10 +962,14 @@ close(synch[1]); read(synch[0], &dummy, 1); close(synch[0]); - jobtab[list_pipe_job].other = newjob; - jobtab[list_pipe_job].stat |= STAT_SUPERJOB; - jn->stat |= STAT_SUBJOB | STAT_NOPRINT; - jn->other = pid; + /* If this job has finished, we turn this into a + * normal (non-super-) job. */ + if (!(jn->stat & STAT_DONE)) { + jobtab[list_pipe_job].other = newjob; + jobtab[list_pipe_job].stat |= STAT_SUPERJOB; + jn->stat |= STAT_SUBJOB | STAT_NOPRINT; + jn->other = pid; + } if (list_pipe || last1) killpg(jobtab[list_pipe_job].gleader, SIGSTOP); break; -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com