zsh-workers
 help / color / mirror / code / Atom feed
* Re: wait for non-child PID
@ 2000-07-27 10:12 Chet Ramey
  0 siblings, 0 replies; 4+ messages in thread
From: Chet Ramey @ 2000-07-27 10:12 UTC (permalink / raw)
  To: schizo; +Cc: akr, zsh-workers

> > % 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/


^ permalink raw reply	[flat|nested] 4+ messages in thread
* wait for non-child PID
@ 2000-07-26  9:06 Tanaka Akira
  2000-07-26 23:09 ` Clint Adams
  0 siblings, 1 reply; 4+ messages in thread
From: Tanaka Akira @ 2000-07-26  9:06 UTC (permalink / raw)
  To: zsh-workers

I heard that wait has a problem if the argument is non-child PID.

For example,

% wait 1

blocks forever.  (It is interruptible.)

bash detects that the PID is not child of the shell.

bash-2.04$ wait 1
bash: wait: pid 1 is not a child of this shell
-- 
Tanaka Akira


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2000-07-27 10:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-27 10:12 wait for non-child PID Chet Ramey
  -- 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

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).