Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Cant fg a suspended su (4.1.0-dev-7)



Peter Whaite <peta@xxxxxxxxxxxxxxxxx> writes:

> I've noticed that I cannot resume a suspened su session lately (It
> happened in 4.1.0-dev-6 as well). 
> 
>        aragorn% /bin/su peta
>        Password: 
>        aragorn% echo $ZSH_VERSION
>        4.1.0-dev-7
>        aragorn% suspend
>        zsh: suspended (signal)  /bin/su peta
>        aragorn% fg %1
>        [1]  + continued  /bin/su peta
>        zsh: suspended (signal)  /bin/su peta
> 
> There is approximately a 1 second pause between the contined and the
> suspended messages.  
> 
> Any idea why the su command re-suspends after the continue?

I could not reproduce the problem on 4.1.0-dev-7, nor on CVS...

A few questions for Peter:

 - Which su are you using? GNU su, the shadow utilities's version of
   su or something else?

   GNU su will give you the version with `su --version'

   shadow su's version can be obtained with: 
     strings /bin/su | grep '\$Package'

 - 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

Thanks,
Phil.



Messages sorted by: Reverse Date, Date, Thread, Author