From: Chet Ramey <chet@nike.ins.cwru.edu>
To: schizo@debian.org
Cc: akr@m17n.org, zsh-workers@sunsite.auc.dk
Subject: Re: wait for non-child PID
Date: Thu, 27 Jul 2000 06:12:29 -0400 [thread overview]
Message-ID: <1000727101229.AA16652.SM@nike.ins.cwru.edu> (raw)
> > % wait 1
> >
> > blocks forever. (It is interruptible.)
> >
> > bash detects that the PID is not child of the shell.
>
> I'm glad that zsh's wait will wait on processes that aren't children of the
> shell. Is there a reason that it shouldn't?
Because the shell will never get a SIGCHLD to notify it that the process
has changed state. A process only gets SIGCHLD when its immediate children
change state.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)
Chet Ramey, CWRU chet@po.CWRU.Edu http://cnswww.cns.cwru.edu/~chet/
next reply other threads:[~2000-07-27 10:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-07-27 10:12 Chet Ramey [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-07-26 9:06 Tanaka Akira
2000-07-26 23:09 ` Clint Adams
2000-07-27 5:13 ` 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=1000727101229.AA16652.SM@nike.ins.cwru.edu \
--to=chet@nike.ins.cwru.edu \
--cc=akr@m17n.org \
--cc=chet@po.CWRU.Edu \
--cc=schizo@debian.org \
--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).