From 80a1aca0d2fad9d151a66ae5e612b96172bd5cbe Mon Sep 17 00:00:00 2001 From: Pádraig Brady
Date: Wed, 21 Sep 2011 15:22:52 +0100 Subject: 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 | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 5d3ca404d..140e6faca 100644 --- a/NEWS +++ b/NEWS @@ -12,6 +12,12 @@ GNU coreutils NEWS -*- outline -*- more than PATH_MAX / 3 components. Also affected due to their use of canonicalize_* functions: df, stat, readlink. +** Changes in behavior + + timeout now only processes the first signal received from the set + it is handling (SIGTERM, SIGINT, ...). This is to support systems that + implicitly create threads for some timer functions (like GNU/kFreeBSD). + * Noteworthy changes in release 8.13 (2011-09-08) [stable] -- cgit v1.2.3-70-g09d2