MINOR: mworker: set all_threads_mask and pid_bit to 1

Reinit the all_threads_mask and pid_bit to 1 before the master polling
loop, this process is monothread.
This commit is contained in:
William Lallemand 2018-12-14 15:52:39 +01:00 committed by Willy Tarreau
parent 1ee55fddea
commit 2672eb987a

View 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 */