Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 03 Jun 2018 21:57:06 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 228728] sh does not reap killed background processes until terminal activity, creating zombies
Message-ID:  <bug-228728-227-wUGvRytlNc@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-228728-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-228728-227@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=3D228728

--- Comment #1 from Jilles Tjoelker <jilles@FreeBSD.org> ---
If this is to be fixed, waitpid() alone does not suffice, since it does not=
 let
you wait for either terminal input or a process termination. It is necessar=
y to
have a SIGCHLD signal handler (either directly or via pselect(2)).

Due to limitations in libedit's API, the signal handler could not do much m=
ore
than reap the zombie and register this in the struct job. This does not help
much except system administrators that insist on zombies being reaped quick=
ly.
Things like a proper 'set -b' (notify about job state at any time) would
require some way to execute a handler function in a defined environment and=
 to
redraw the pending input.

--=20
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-228728-227-wUGvRytlNc>