From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3308 invoked from network); 7 Feb 2005 14:27:48 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 7 Feb 2005 14:27:48 -0000 Received: (qmail 27731 invoked from network); 7 Feb 2005 14:27:41 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 7 Feb 2005 14:27:41 -0000 Received: (qmail 12741 invoked by alias); 7 Feb 2005 14:27:11 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8474 Received: (qmail 12726 invoked from network); 7 Feb 2005 14:27:10 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 7 Feb 2005 14:27:10 -0000 Received: (qmail 25319 invoked from network); 7 Feb 2005 14:26:11 -0000 Received: from klutz.cs.utk.edu (160.36.56.50) by a.mx.sunsite.dk with SMTP; 7 Feb 2005 14:26:06 -0000 Received: from localhost (klutz [127.0.0.1]) by klutz.cs.utk.edu (Postfix) with ESMTP id 172EC400EC for ; Mon, 7 Feb 2005 09:26:05 -0500 (EST) Received: from klutz.cs.utk.edu ([127.0.0.1]) by localhost (klutz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22275-06 for ; Mon, 7 Feb 2005 09:26:03 -0500 (EST) Received: from namib.cs.utk.edu (namib.cs.utk.edu [160.36.59.92]) by klutz.cs.utk.edu (Postfix) with ESMTP id D28C4400C6 for ; Mon, 7 Feb 2005 09:26:03 -0500 (EST) Received: by namib.cs.utk.edu (Postfix, from userid 10605) id A129F69B7C; Mon, 7 Feb 2005 09:26:03 -0500 (EST) Date: Mon, 7 Feb 2005 09:26:03 -0500 From: Chris Johnson To: zsh-users@sunsite.dk Subject: Re: nohup/disown and logout Message-ID: <20050207142603.GA15548@namib.cs.utk.edu> References: <20050207041841.GA5026@cetus5.cs.utk.edu> <20050207082506.GB11544@vandal.simcon-mt.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050207082506.GB11544@vandal.simcon-mt.de> User-Agent: Mutt/1.4.2i X-Virus-Scanned: by amavisd-new at cs.utk.edu by ClamAV and McAfee X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 Andrei A. Voropaev sent me the following 1.1K: > > If I run a command like "nohup myprog &|", the job doesn't appear in the > > jobs table, as expected, but when I exit the shell, .zlogout is executed > > and everything hangs. No control key combinations seem to do anything. > > Killing the nohup'ed process from another shell releases the original > > shell and it exits. I get no message. I've tried with disown also, but > > the same behavior is exhibited. If it makes any difference, I > > experience this problem when logged in remotely to a university machine. > > It seems to work all right locally on my own machine. > > > > Any ideas? Any further information I can provide? Many thanks! > > Are you using ssh to login? I see... The ssh session hangs because there's still a connection to std(in|out|err). If I redirect all these away to /dev/null or elsewhere, the session closes as expected and the process continues to run: nohup myprog &> /dev/null < /dev/null &! Thanks for the tipoff! -- Chris Johnson cjohnson@cs.utk.edu http://www.cs.utk.edu/~cjohnson