]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: mworker: set all_threads_mask and pid_bit to 1
authorWilliam Lallemand <wlallemand@haproxy.com>
Fri, 14 Dec 2018 14:52:39 +0000 (15:52 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 Dec 2018 15:01:37 +0000 (16:01 +0100)
Reinit the all_threads_mask and pid_bit to 1 before the master polling
loop, this process is monothread.

src/haproxy.c

index 4af888073afeb586517d0a085e08589e6e7f67dd..0fa07ce4e66fc4124d56531d3336f1a4cc2e0cfb 100644 (file)
@@ -904,6 +904,11 @@ static void mworker_loop()
        relative_pid = 1;
        pid_bit = 1;
 
+#ifdef USE_THREAD
+       tid_bit = 1;
+       all_threads_mask = 1;
+#endif
+
        jobs++; /* this is the "master" job, we want to take care of the
                signals even if there is no listener so the poll loop don't
                leave */