commit | c8c0ed91cb4436491efd2ce2c4b4b1694aeeccca | [log] [tgz] |
---|---|---|
author | Emeric Brun <ebrun@haproxy.com> | Thu Oct 11 15:27:07 2018 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Thu Oct 11 16:29:38 2018 +0200 |
tree | cdb248a028d5276d425c749da437a4484fd08683 | |
parent | dddfe312650affccae1ea149209537258bdc6e9d [diff] |
BUG/MEDIUM: mworker: segfault receiving SIGUSR1 followed by SIGTERM. This bug appeared only if nbthread > 1. Handling the pipe with the master, multiple threads of the same worker could process the deinit(). In addition, deinit() was called while some other threads were still performing some tasks. This patch assign the handler of the pipe with master to only the first thread and removes the call to deinit() before exiting with an error. This patch should be backported in v1.8.