From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13192 invoked from network); 25 Feb 2003 03:00:58 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 25 Feb 2003 03:00:58 -0000 Received: (qmail 15539 invoked by alias); 25 Feb 2003 03:00:51 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 18286 Received: (qmail 15532 invoked from network); 25 Feb 2003 03:00:50 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 25 Feb 2003 03:00:50 -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 3:0:50 -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 h1P30oV29019; Mon, 24 Feb 2003 22:00:50 -0500 Received: from aragorn.cortexmachina.com (peta@localhost) by aragorn.cortexmachina.com (8.11.6/8.11.6) with ESMTP id h1P30n621369; Mon, 24 Feb 2003 22:00:49 -0500 Message-Id: <200302250300.h1P30n621369@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 "24 Feb 2003 17:29:20 PST." <87fzqd172n.fsf@ceramic.fifi.org> X-Mailer: MH-E 7.2+cvs; nmh 1.0.4; GNU Emacs 21.3.50.65 Date: Mon, 24 Feb 2003 22:00:49 -0500 From: Peter Whaite Philippe Troin said: > > A few questions for Peter: > > - Which su are you using? GNU su, the shadow utilities's version of > su or something else? % ls -l =su -rwsr-xr-x 1 root root 14112 Jan 16 2001 /bin/su* % /bin/su --version su (GNU sh-utils) 2.0 Written by David MacKenzie. Copyright (C) 1999 Free Software Foundation, Inc. > - Can you send us the output of 'ps xajf' ran from within the su > shell... You might want to trim it. I'm interested in the PGID of > the the su'ed zsh and its parent... For me it looks like this: > > PPID PID PGID SID TTY TPGID STAT UID TIME COMMAND > 26785 15644 15644 26785 pts/0 15770 S 1000 0:00 \_ ../inst > 15644 15753 15753 26785 pts/0 15770 S 1002 0:00 \_ zsh > 15753 15770 15770 26785 pts/0 15770 R 1002 0:00 \_ ps % /bin/su peta Password: % ps xajf PPID PID PGID SID TTY TPGID STAT UID TIME COMMAND 20712 20728 20728 20728 pts/2 21112 S 501 0:00 | \_ zsh 20728 21091 21091 20728 pts/2 21112 S 0 0:00 | \_ /bin/su 21091 21095 21095 20728 pts/2 21112 S 501 0:00 | \_ zsh 21095 21112 21112 20728 pts/2 21112 R 501 0:00 | \_ and also (leftovers?)... 1 22655 22655 21257 ? -1 T 0 0:00 /bin/su peta 22655 22657 22657 21257 ? -1 T 501 0:00 \_ zsh 1 22929 22929 22689 ? -1 T 0 0:00 /bin/su peta 22929 22933 22933 22689 ? -1 T 501 0:00 \_ zsh 1 23049 23049 23020 ? -1 T 0 0:00 /bin/su peta 23049 23051 23051 23020 ? -1 T 501 0:00 \_ zsh > Thanks, > Phil. I can confirm that it doesnt always happen. On a FreeBSD system this version of su $FreeBSD: src/usr.bin/su/su.c,v 1.34.2.3 2001/08/17 15:44:42 ru Exp $ works fine. Hope this helps -- peta