From: TGAPE! <tgape@cyberramp.net>
To: zsh-workers@math.gatech.edu
Subject: Re: Pipeline process wait bug in 3.0.5
Date: Sat, 18 Apr 1998 13:21:34 +0000 (GMT) [thread overview]
Message-ID: <199804181321.NAA12785@dal-tsa21-41.cyberramp.net> (raw)
In-Reply-To: <980418030434.ZM3820@candle.brasslantern.com> from "Bart Schaefer" at Apr 18, 98 03:04:34 am
Bart Schaefer wrote:
>
> I have this little function:
>
> isset () {
> setopt | grep -i $(echo $1 | tr -d _)
>}
>
> This is so I can type e.g.
>
> zsh% isset auto_cd
> autocd on
>
> However, a bit less than half the time, running this function produces
>
> zsh% isset autocd
> zsh% autocd on
>
> (with the cursor now at the beginning of the next line). I can't be sure,
> of course, but it seems to me this must be a problem with zsh failing to
> wait for the entire pipeline to complete before it prints the next prompt.
I'm not certain, but this seems related to the 'night of the living dead
(processes)' problem I reported a while back. At least, I predicted
this type of occurance when I heard the description of what my problem
was. Basically, only one process in the pipeline gets waited on.
My problem was I was doing some intense loops with excessive pipelining
(I tend to use that as my omni-hammer, even when it doesn't always make
sense...) which was sending thousands of processes to init; init's
inefficient handling (it has to reload /etc/inittab each child) caused
it to virtually spin.
It was explained to me that it saves on number of pids on the system,
but considering how poorly init handles zombies, I don't think it's a
practical way to handle that, especially on systems like Linux which
fork using copy-on-write pagemarkings. However, I've not had the time
to make a patch for it.
Ed
next prev parent reply other threads:[~1998-04-18 19:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-04-18 10:04 Bart Schaefer
1998-04-18 13:21 ` TGAPE! [this message]
1998-04-18 21:49 ` Bart Schaefer
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=199804181321.NAA12785@dal-tsa21-41.cyberramp.net \
--to=tgape@cyberramp.net \
--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).