From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29512 invoked from network); 13 Feb 2006 14:09:00 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 13 Feb 2006 14:09:00 -0000 Received: (qmail 14544 invoked from network); 13 Feb 2006 14:08:48 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 13 Feb 2006 14:08:48 -0000 Received: (qmail 9795 invoked by alias); 13 Feb 2006 14:08:41 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9919 Received: (qmail 9785 invoked from network); 13 Feb 2006 14:08:40 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 13 Feb 2006 14:08:40 -0000 Received: (qmail 13414 invoked from network); 13 Feb 2006 14:08:40 -0000 Received: from fir.cise.ufl.edu (HELO mail.cise.ufl.edu) (128.227.205.250) by a.mx.sunsite.dk with SMTP; 13 Feb 2006 14:08:39 -0000 Received: from localhost (localhost [127.0.0.1]) by mail.cise.ufl.edu (Postfix) with ESMTP id EF5E713A; Mon, 13 Feb 2006 09:08:37 -0500 (EST) Received: from mail.cise.ufl.edu ([127.0.0.1]) by localhost (fir.cise.ufl.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 34838-07; Mon, 13 Feb 2006 09:08:33 -0500 (EST) Received: from test-suse.cise.ufl.edu (test-suse.cise.ufl.edu [128.227.205.53]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mail.cise.ufl.edu (Postfix) with ESMTP id 12D57110; Mon, 13 Feb 2006 09:08:33 -0500 (EST) From: "James F. Hranicky" Organization: University of Florida CISE Department To: Bart Schaefer Subject: Re: Terminal hang when bg/fg root shell on OS X Date: Mon, 13 Feb 2006 09:08:31 -0500 User-Agent: KMail/1.8 Cc: zsh-users@sunsite.dk References: <200602101445.58658.jfh@cise.ufl.edu> <1060211195555.ZM6077@candle.brasslantern.com> In-Reply-To: <1060211195555.ZM6077@candle.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200602130908.32286.jfh@cise.ufl.edu> X-Virus-Scanned: amavisd-new at cise.ufl.edu On Saturday 11 February 2006 14:55, Bart Schaefer wrote: > On Feb 10, 2:45pm, James F. Hranicky wrote: > } > } When I background then foreground a root shell on OS X I get > } a terminal error: > > The "exec zsh" is a contributing factor here. > > I suspect that you're running into a combination of problems with the > tty's controlling process having changed and with the fact that a > process owned by a normal user (parent shell, before the "su") can't > send a signal to a process owned by root. > > Either change root's shell to zsh permanently, or try using > > su -l -c zsh > > instead of exec'ing zsh after the fact. I can't suspend login shells, though :-> Even running su -c zsh gives the same terminal problem. Fortunately, sudo zsh seems to work just fine with backgrounding and foregrounding. Thanks, Jim