From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25682 invoked from network); 11 Feb 2006 19:56:18 -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=AWL,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; 11 Feb 2006 19:56:18 -0000 Received: (qmail 353 invoked from network); 11 Feb 2006 19:56:09 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 11 Feb 2006 19:56:09 -0000 Received: (qmail 17276 invoked by alias); 11 Feb 2006 19:56:02 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9915 Received: (qmail 17267 invoked from network); 11 Feb 2006 19:56:01 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 11 Feb 2006 19:56:01 -0000 Received: (qmail 99221 invoked from network); 11 Feb 2006 19:56:01 -0000 Received: from vms048pub.verizon.net (206.46.252.48) by a.mx.sunsite.dk with SMTP; 11 Feb 2006 19:56:00 -0000 Received: from candle.brasslantern.com ([71.116.81.225]) by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IUJ00IIZGP8XQRB@vms048.mailsrvcs.net> for zsh-users@sunsite.dk; Sat, 11 Feb 2006 13:55:57 -0600 (CST) Received: from candle.brasslantern.com (IDENT:schaefer@localhost [127.0.0.1]) by candle.brasslantern.com (8.12.11/8.12.11) with ESMTP id k1BJtt6b006079 for ; Sat, 11 Feb 2006 11:55:55 -0800 Received: (from schaefer@localhost) by candle.brasslantern.com (8.12.11/8.12.11/Submit) id k1BJttSR006078 for zsh-users@sunsite.dk; Sat, 11 Feb 2006 11:55:55 -0800 Date: Sat, 11 Feb 2006 19:55:55 +0000 From: Bart Schaefer Subject: Re: Terminal hang when bg/fg root shell on OS X In-reply-to: <200602101445.58658.jfh@cise.ufl.edu> To: zsh-users@sunsite.dk Message-id: <1060211195555.ZM6077@candle.brasslantern.com> MIME-version: 1.0 X-Mailer: Z-Mail (5.0.0 30July97) Content-type: text/plain; charset=us-ascii References: <200602101445.58658.jfh@cise.ufl.edu> Comments: In reply to "James F. Hranicky" "Terminal hang when bg/fg root shell on OS X" (Feb 10, 2:45pm) 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.