zsh-workers
 help / color / mirror / code / Atom feed
From: Peter William Stephenson <pws@ifh.de>
To: zsh-workers@math.gatech.edu (Zsh hackers list)
Subject: Pid or not pid
Date: Thu, 16 Nov 1995 16:57:47 +0100	[thread overview]
Message-ID: <9511161557.AA20201@sgi.ifh.de> (raw)

Some of the code in execcmd() is getting executed in the parent rather
than the child, presumably since the last rearrangement... in
particular, nice(5) is getting called if fork() returned a non-zero
pid, i.e. in the parent (line 1350 of exec.c).  This means each time a
background process is forked, the parent shell has a lower priority.
This may be a good way to deal with process hogs, but I don't think
it's what's intended.

% ps -l -p$$
 F S   UID   PID  PPID  C PRI NI  P    SZ:RSS      WCHAN TTY      TIME COMD
30 S  2082 18544 21831  2  39 20  *   775:366   801bf9c0 pts/54   0:01 zsh
% sleep 3 &
[1] 19247
+4:52% ps -l -p$$
 F S   UID   PID  PPID  C PRI NI  P    SZ:RSS      WCHAN TTY      TIME COMD
30 S  2082 18544 21831  1  39 25  *   775:361   801bf9c0 pts/54   0:01 zsh
% 

-- 
Peter Stephenson <pws@ifh.de>       Tel: +49 33762 77366
WWW:  http://www.ifh.de/~pws/       Fax: +49 33762 77330
Deutches Electronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.


             reply	other threads:[~1995-11-16 16:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-11-16 15:57 Peter William Stephenson [this message]
1995-11-16 18:25 ` Richard Coleman
1995-11-16 21:35   ` Zefram
1995-11-16 23:57 ` Richard Coleman

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=9511161557.AA20201@sgi.ifh.de \
    --to=pws@ifh.de \
    --cc=zsh-workers@math.gatech.edu \
    /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).