zsh-workers
 help / color / mirror / code / Atom feed
* Re: Bug#593426: zsh: Status of background jobs not updated
@ 2010-08-19 22:14 Jilles Tjoelker
  2010-08-20  2:36 ` Bart Schaefer
  0 siblings, 1 reply; 8+ messages in thread
From: Jilles Tjoelker @ 2010-08-19 22:14 UTC (permalink / raw)
  To: Peter Stephenson, zsh-workers; +Cc: 593426

> [continuing a stopped background job using kill is not reflected in the
> output of jobs]

I think hooking into the kill builtin is the wrong way to fix this.
Instead, use the facilities provided by modern systems which can notify
you if a child process continues. These are si_code CLD_CONTINUED for
SIGCHLD and the WCONTINUED flag and WIFCONTINUED() macro for waitpid().
Some systems do not provide these, and may not even provide queuing and
siginfo for SIGCHLD, so the latter approach seems best. The WCONTINUED
stuff can then be #ifdef'ed out for systems that do not support it.

-- 
Jilles Tjoelker


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

end of thread, other threads:[~2010-08-21  0:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20100818025148.13456.14691.reportbug@salamander.skynet.lan>
2010-08-18 18:29 ` Bug#593426: zsh: Status of background jobs not updated Clint Adams
2010-08-18 20:09   ` Peter Stephenson
2010-08-20  4:22     ` Bart Schaefer
2010-08-20  8:55       ` Peter Stephenson
2010-08-21  0:07         ` Peter Stephenson
2010-08-19 22:14 Jilles Tjoelker
2010-08-20  2:36 ` Bart Schaefer
2010-08-20 20:21   ` Jilles Tjoelker

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