timeout: handle implicitly created threads
commit80a1aca0d2fad9d151a66ae5e612b96172bd5cbe
authorPádraig Brady <P@draigBrady.com>
Wed, 21 Sep 2011 14:22:52 +0000 (21 15:22 +0100)
committerPádraig Brady <P@draigBrady.com>
Thu, 22 Sep 2011 11:01:05 +0000 (22 12:01 +0100)
tree410568c66715f29e426002ac162d08118e74ac44
parenta4fa14849a7e310d135732142df2439f8f820483
timeout: handle implicitly created threads

On some systems like glibc on GNU/kFreeBSD, a thread is
implicitly created when timer_settime() is used.
This breaks our scheme to ignore signals we've
sent ourselves.

* src/timeout.c (send_sig): Change the scheme used to
ignore signals we've sent ourselves, to a more robust
but perhaps limited scheme of ignoring all signals of
a certain type after we've sent that signal to the job.
* NEWS: Mention the change in behavior.
NEWS
src/timeout.c