From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12190 invoked from network); 11 Dec 2008 20:43:23 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 11 Dec 2008 20:43:23 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 46650 invoked from network); 11 Dec 2008 20:43:18 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 11 Dec 2008 20:43:18 -0000 Received: (qmail 6915 invoked by alias); 11 Dec 2008 20:43:13 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26131 Received: (qmail 6902 invoked from network); 11 Dec 2008 20:43:12 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 11 Dec 2008 20:43:12 -0000 Received: from email2.allantgroup.com (email2.emsphone.com [199.67.51.116]) by bifrost.dotsrc.org (Postfix) with ESMTPS id C3EC180524C3 for ; Thu, 11 Dec 2008 21:42:59 +0100 (CET) Received: from dan.emsphone.com (dan-a.emsphone.com [199.67.51.107]) by email2.allantgroup.com (8.14.0/8.14.0) with ESMTP id mBBKgs3d033549 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 11 Dec 2008 14:42:54 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.3/8.14.3) with ESMTP id mBBKgrWg006246 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 11 Dec 2008 14:42:54 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.3/8.14.3/Submit) id mBBKgpIT006231; Thu, 11 Dec 2008 14:42:51 -0600 (CST) (envelope-from dan) Date: Thu, 11 Dec 2008 14:42:51 -0600 From: Dan Nelson To: Bart Schaefer Cc: zsh-workers@sunsite.dk Subject: Re: Quick way to lock up your shell Message-ID: <20081211204251.GB14085@dan.emsphone.com> References: <081211093531.ZM21666@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <081211093531.ZM21666@torch.brasslantern.com> X-OS: FreeBSD 7.1-PRERELEASE User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: ClamAV version 0.94.1, clamav-milter version 0.94.1 on email2.allantgroup.com X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (email2.allantgroup.com [199.67.51.78]); Thu, 11 Dec 2008 14:42:54 -0600 (CST) X-Scanned-By: MIMEDefang 2.45 X-Virus-Scanned: ClamAV 0.92.1/8747/Thu Dec 11 20:22:53 2008 on bifrost X-Virus-Status: Clean In the last episode (Dec 11), Bart Schaefer said: > schaefer<501> FOO==(cat) > > The shell is now hung forever waiting for a "cat" that will never > exit, because cat's standard input is neither closed nor connected to > anything (expect to the parent zsh, which isn't writing to it). > > This happens at least as far back as 4.2.0, so it's not a new problem. I can't reproduce this myself; the only thing redirected inside =() should be stdout. It won't hang on any of my systems. Tested zsh between 4.1.1 and 4.3.9, on AIX, FreeBSD, Linux, and Solaris. $ zsh -f dan% FOO==(cat) [hit ^T here] load: 3.00 cmd: cat 59991 [ttyin] 0.00u 0.02s 0% 156k [hit ^D here] dan% lsof run in another tty while cat was waiting showed: cat 59991 dan 0u VCHR 0,157 0t96493 157 /dev/ttypg cat 59991 dan 1w VREG 0,112 0 21 /tmp (/dev/md0) cat 59991 dan 2u VCHR 0,157 0t96493 157 /dev/ttypg -- Dan Nelson dnelson@allantgroup.com