From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7309 invoked from network); 25 Feb 2003 17:02:43 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 25 Feb 2003 17:02:43 -0000 Received: (qmail 23812 invoked by alias); 25 Feb 2003 17:02:36 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 18295 Received: (qmail 23805 invoked from network); 25 Feb 2003 17:02:36 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 25 Feb 2003 17:02:36 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [209.202.76.214] by sunsite.dk (MessageWall 1.0.8) with SMTP; 25 Feb 2003 17:2:35 -0000 Received: from aragorn.cortexmachina.com (aragorn.cortexmachina.com [192.168.2.2]) by ursula.cortexmachina.com (8.11.6/8.11.6) with ESMTP id h1PH2Yb30559; Tue, 25 Feb 2003 12:02:34 -0500 Received: from aragorn.cortexmachina.com (peta@localhost) by aragorn.cortexmachina.com (8.11.6/8.11.6) with ESMTP id h1PH2YZ13640; Tue, 25 Feb 2003 12:02:34 -0500 Message-Id: <200302251702.h1PH2YZ13640@aragorn.cortexmachina.com> To: Philippe Troin cc: zsh-workers@sunsite.dk Subject: Re: Cant fg a suspended su (4.1.0-dev-7) In-Reply-To: Message from Philippe Troin of "25 Feb 2003 08:34:51 PST." <87n0kk71zo.fsf@ceramic.fifi.org> X-Mailer: MH-E 7.2+cvs; nmh 1.0.4; GNU Emacs 21.3.50.65 Date: Tue, 25 Feb 2003 12:02:34 -0500 From: Peter Whaite Philippe Troin said: > Philippe Troin writes: > > > I'll check out how the other shells (bash and tcsh) handle this case > > and will post a patch for bin_suspend() later. > > I was looking at bash, and they do not do anything special (like > reverting to the original pgrp) before suspending. > > Can you try su'ing with bash? I was able to get it stuck with my local > test program here... but I do not have GNU su installed (yet). Looks like bash can deal with GNU su. So can tcsh. % su --shell=/bin/bash peta Password: [peta@aragorn zsh]$ suspend zsh: suspended (signal) /bin/su --shell=/bin/bash peta 1 % fg [1] + continued /bin/su --shell=/bin/bash peta 11779 11790 11790 11790 pts/2 12959 S 501 0:00 \_ -zsh 11790 12894 12894 11790 pts/2 12959 S 0 0:00 \_ /bin/su --shell=/bin/bash peta 12894 12903 12903 11790 pts/2 12959 S 501 0:00 \_ bash 12903 12959 12959 11790 pts/2 12959 R 501 0:00 \_ ps xajfw -- Peter Whaite VP Research and Development, Cynovad - ShadeScan Division. 460 ste-Catherine O, bureau 942, Montreal, Quebec. H3B 1A7 Phone: (514) 395 3905 (#204) Fax: (514) 878 2874