Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Cant fg a suspended su (4.1.0-dev-7)
- X-seq: zsh-workers 18295
- From: Peter Whaite <peta@xxxxxxxxxxxxxxxxx>
- To: Philippe Troin <phil@xxxxxxxx>
- Subject: Re: Cant fg a suspended su (4.1.0-dev-7)
- Date: Tue, 25 Feb 2003 12:02:34 -0500
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: Message from Philippe Troin <phil@xxxxxxxx>    of "25 Feb 2003 08:34:51 PST." <87n0kk71zo.fsf@xxxxxxxxxxxxxxxx> 
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Philippe Troin said:
> Philippe Troin <phil@xxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author