zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Whaite <peta@cortexmachina.com>
To: Philippe Troin <phil@fifi.org>
Cc: zsh-workers@sunsite.dk
Subject: Re: Cant fg a suspended su (4.1.0-dev-7)
Date: Mon, 24 Feb 2003 22:00:49 -0500	[thread overview]
Message-ID: <200302250300.h1P30n621369@aragorn.cortexmachina.com> (raw)
In-Reply-To: Message from Philippe Troin <phil@fifi.org>  of "24 Feb 2003 17:29:20 PST." <87fzqd172n.fsf@ceramic.fifi.org>


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


  reply	other threads:[~2003-02-25  3:00 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-21 18:07 Peter Whaite
2003-02-22 23:04 ` Bart Schaefer
2003-02-22 23:42   ` Bart Schaefer
2003-02-25  0:38   ` Philippe Troin
2003-02-27  8:47     ` Help needed with execcmd() (was: Re: Cant fg a suspended su (4.1.0-dev-7)) Philippe Troin
2003-03-01 18:42       ` Bart Schaefer
2003-02-25  1:29 ` Cant fg a suspended su (4.1.0-dev-7) Philippe Troin
2003-02-25  3:00   ` Peter Whaite [this message]
2003-02-25  3:37     ` Philippe Troin
2003-02-25 16:34       ` Philippe Troin
2003-02-25 17:02         ` Peter Whaite
2003-03-06  4:47           ` Philippe Troin
2003-03-06 18:23             ` Peter Whaite
2003-03-06 22:14               ` Philippe Troin
2003-03-07 12:18               ` Peter Stephenson
2003-03-07 14:01                 ` Philippe Troin
2003-02-26  6:18 ` Philippe Troin
2003-02-26 16:25   ` Bart Schaefer
2003-02-26 16:34     ` Peter Stephenson
2003-02-26 20:30     ` Philippe Troin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200302250300.h1P30n621369@aragorn.cortexmachina.com \
    --to=peta@cortexmachina.com \
    --cc=phil@fifi.org \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).