Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Apr 2015 12:19:24 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 196951] Feature request: fix wait-built to allow waiting for ANY process, not just the current shell's child
Message-ID:  <bug-196951-8-mYcRNLrB8a@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-196951-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-196951-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196951

Jilles Tjoelker <jilles@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jilles@FreeBSD.org

--- Comment #4 from Jilles Tjoelker <jilles@FreeBSD.org> ---
As noted by the pwait(1) man page, pwait is not a replacement for the wait
builtin, since it can wait for a process to terminate and show the exit status
but cannot clean up zombies or state on the parent process. Therefore, I don't
think the wait builtin should be changed -- if a script wants to wait for an
unrelated process, it can use pwait.

rc.subr already uses pwait when waiting for a service to stop. This does not
work optimally because pwait waits for a process to terminate, while rc.subr
wants to wait for the zombie to be reaped by the parent such as init (by
waiting until kill -0 PID fails).

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-196951-8-mYcRNLrB8a>