diff options
author | John Stultz <[email protected]> | 2015-06-17 11:16:43 -0700 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2015-06-18 15:28:14 +0200 |
commit | 51a16c1e887a5975ada27a3ae935a4f2783005da (patch) | |
tree | f2cae7425bb14b2e9b0d4a4e50dd7b841e9dd44a /scripts/gdb/linux/tasks.py | |
parent | 906c55579a6360dd9ef5a3101bb2e3ae396dfb97 (diff) |
selftest: Timers: Avoid signal deadlock in leap-a-day
In 0c4a5fc95b1df (Add leap-second timer edge testing to
leap-a-day.c), we added a timer to the test which checks to make
sure timers near the leapsecond edge behave correctly.
However, the output generated from the timer uses ctime_r, which
isn't async-signal safe, and should that signal land while the
main test is using ctime_r to print its output, its possible for
the test to deadlock on glibc internal locks.
Thus this patch reworks the output to avoid using ctime_r in
the signal handler.
Signed-off-by: John Stultz <[email protected]>
Cc: Prarit Bhargava <[email protected]>
Cc: Daniel Bristot de Oliveira <[email protected]>
Cc: Richard Cochran <[email protected]>
Cc: Jan Kara <[email protected]>
Cc: Jiri Bohac <[email protected]>
Cc: Shuah Khan <[email protected]>
Cc: Ingo Molnar <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions