From owner-freebsd-current Fri Nov 12 10:35:29 1999 Delivered-To: freebsd-current@freebsd.org Received: from knight.cons.org (knight.cons.org [194.233.237.195]) by hub.freebsd.org (Postfix) with ESMTP id 4B82815036; Fri, 12 Nov 1999 10:35:18 -0800 (PST) (envelope-from cracauer@knight.cons.org) Received: (from cracauer@localhost) by knight.cons.org (8.9.3/8.9.3) id TAA16054; Fri, 12 Nov 1999 19:35:05 +0100 (CET) Date: Fri, 12 Nov 1999 19:35:05 +0100 From: Martin Cracauer To: Bruce Evans Cc: Martin Cracauer , cracauer@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: shell pipeline bug Message-ID: <19991112193504.A16025@cons.org> References: <19991112174451.A15638@cons.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.1i In-Reply-To: ; from Bruce Evans on Sat, Nov 13, 1999 at 04:15:54AM +1100 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In , Bruce Evans wrote: > On Fri, 12 Nov 1999, Martin Cracauer wrote: > > > In , Bruce Evans wrote: > > > `man sh' now hangs when the pager is exited. This is caused by the recent > > > change to sh/eval.c > > > > My fix in 1.23 of eval.c was broken, but Steve repaired it in 1.24. > > > > Do you have 1.24? > > Yes, of course. Sorry, I can reproduce the hangs with 1.23, while I can't with 1.24. The problem is: A pipe with more data that sh's threshold for forking is and the receiving end process exits before the sending process, not consuming all of the pipe's contents. That exactly what 1.24 fixed (for me :-). Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer http://www.cons.org/cracauer/ Tel.: (private) +4940 5221829 Fax.: (private) +4940 5228536 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message