On 02Mar2020 09:31, Kevin J. McCarthy <[email protected]> wrote:
On Mon, Mar 02, 2020 at 04:40:13PM +0300, Consus wrote:
God bless you, works perfectly. Is it possible to add new statusline
format like "number of finished, yet not sent emails"? Sometimes I
get distracted and forget to actually send the mail I wrote so it
just seats there until I accidentally come by.
I can easily add an expando for the total number of background
sessions: both still editing, and done editing but waiting to be
resumed. Would that be helpful?
Separating out the running vs finished count is trickier due to
implementation issues (I currently only waitpid inside the background
menu).
If the regular "new mail" poll task can be shoehorned, you can
kill(0,pid) to probe processes. I'd need to check if zombies look like
ESRCH to this, but it may suffice.
Although I see waitpid has a WNOHANG option.
Cheers,
Cameron Simpson <[email protected]>