handle_recursive: fix race condition if threads are used

Requires thread-local storage.

Another solution would be a mutex, but this is slower and more
complicated and might cause issues with some programs.
This commit is contained in:
Simon Ruderich
2014-04-08 14:38:01 +02:00
parent 93bd149d9f
commit b6d1dc09b6
5 changed files with 86 additions and 2 deletions

2
NEWS
View File

@@ -7,6 +7,8 @@ NEWS
- Fix hook for GNU's error_at_line() not exiting if status != 0. If
error_one_per_line was used and suppressed a message, then error_at_line()
didn't exit.
- Fix race condition when using threads. The fix requires thread-local
storage.
0.1