zsh-workers
 help / color / mirror / code / Atom feed
* wait for non-child PID
@ 2000-07-26  9:06 Tanaka Akira
  2000-07-26 23:09 ` Clint Adams
  0 siblings, 1 reply; 6+ 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] 6+ messages in thread
* Re: PATCH (?): Re: wait for non-child PID
@ 2000-07-28  7:04 Sven Wischnowsky
  0 siblings, 0 replies; 6+ messages in thread
From: Sven Wischnowsky @ 2000-07-28  7:04 UTC (permalink / raw)
  To: zsh-workers


Bart Schaefer wrote:

> On Jul 27,  6:57am, Bart Schaefer wrote:
> }
> } Short of doing that, the only thing to do seems to be to rely on the job
> } table.  I won't commit the following patch until we're reasonably sure
> } that there are no interesting cases of child processes that can't be
> } detected by findproc() -- something I'm not entirely certain of myself.
> 
> Anybody have anything to say about this?  If nobody knows the answer, then
> maybe instead I should commit it and we can watch for things that break.

Sorry, forgot to answer this...

Yes, I think you should just apply it. Since findproc() is the
function used by the signal handler to find the job this is probably
the best we can do.

Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


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

end of thread, other threads:[~2000-07-28  7:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-26  9:06 wait for non-child PID Tanaka Akira
2000-07-26 23:09 ` Clint Adams
2000-07-27  5:13   ` Tanaka Akira
2000-07-27  6:57     ` PATCH (?): " Bart Schaefer
2000-07-27 17:22       ` Bart Schaefer
2000-07-28  7:04 Sven Wischnowsky

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