commit | b79a94c9f3c6b741a219decfeb004896cd978795 | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@haproxy.com> | Tue May 30 15:34:30 2017 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue Oct 31 13:58:30 2017 +0100 |
tree | 241b56fb165693603e3c50c8d9cf2688bc87a1e3 | |
parent | c60def8368f73e578685c4f02df7d6dbe63c85d3 [diff] [blame] |
MEDIUM: threads/signal: Add a lock to make signals thread-safe A global lock has been added to protect the signal processing. So when a signal it triggered, only one thread will catch it.
diff --git a/src/haproxy.c b/src/haproxy.c index ff63844..81122c8 100644 --- a/src/haproxy.c +++ b/src/haproxy.c
@@ -2819,6 +2819,10 @@ free(tids); free(threads); +#if defined(DEBUG_THREAD) || defined(DEBUG_FULL) + show_lock_stats(); +#endif + #endif /* USE_THREAD */ } else {