]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: mworker: segfault receiving SIGUSR1 followed by SIGTERM.
authorEmeric Brun <ebrun@haproxy.com>
Thu, 11 Oct 2018 13:27:07 +0000 (15:27 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Oct 2018 14:29:38 +0000 (16:29 +0200)
commitc8c0ed91cb4436491efd2ce2c4b4b1694aeeccca
treecdb248a028d5276d425c749da437a4484fd08683
parentdddfe312650affccae1ea149209537258bdc6e9d
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.
src/haproxy.c