zsh-workers
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: zsh-workers@sunsite.auc.dk
Subject: Re: fg/bg on FreeBSD.
Date: Sat, 6 May 2000 17:08:28 +0000	[thread overview]
Message-ID: <1000506170828.ZM2063@candle.brasslantern.com> (raw)
In-Reply-To: <hvo3dnvoh59.fsf@serein.m17n.org>

On May 7, 12:03am, Tanaka Akira wrote:
} Subject: fg/bg on FreeBSD.
}
} On FreeBSD 3.4 and 4.0, fg/bg may not activate suspended process.
} 
} Report the job info.
} echo's PID is 754 and it's already done.
} sleep's PID is 755 and it's suspended.
} 
} | dhcp21% ps j755
} | USER   PID  PPID  PGID   SESS JOBC STAT  TT       TIME COMMAND
} | akr    755   753   755 92fdc0    1 T     p1    0:00.00 sleep 10

Here's the same on linux:

zagzig[22] jobs -l
[1]  + 2052 done       echo | 
       2053 suspended  sleep 10
zagzig[23] ps j2053
 PPID   PID  PGID   SID TTY TPGID  STAT  UID   TIME COMMAND
 2013  2053  2052  2013  pc  2054  T     674   0:00 sleep 10 

Why is the PGID of sleep different on FreeBSD?  Did it change after the
sleep was started because the echo exited?

Please try the same test, but replace "echo" with "sleep 9" so that you
can stop both jobs before either one of them exits.  Then see what the
PGID of the second sleep is.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com


  reply	other threads:[~2000-05-06 17:08 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-06 15:03 Tanaka Akira
2000-05-06 17:08 ` Bart Schaefer [this message]
2000-05-06 17:48   ` Tanaka Akira
2000-05-06 18:45     ` Bart Schaefer
2000-05-06 19:03       ` Tanaka Akira
2000-05-06 19:58     ` Tanaka Akira
2000-05-06 21:23       ` Bart Schaefer
2000-05-06 21:41         ` Tanaka Akira
2000-05-08  8:48 Sven Wischnowsky
2000-05-08  9:17 ` Tanaka Akira

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=1000506170828.ZM2063@candle.brasslantern.com \
    --to=schaefer@candle.brasslantern.com \
    --cc=zsh-workers@sunsite.auc.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).