Skip to content

Commit

Permalink
test signals.
Browse files Browse the repository at this point in the history
  • Loading branch information
wlallemand committed Oct 15, 2024
1 parent e507e28 commit eb1c090
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/haproxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -4022,9 +4022,6 @@ int main(int argc, char **argv)
/* start threads 2 and above */
setup_extra_threads(&run_thread_poll_loop);

/* when multithreading we need to let only the thread 0 handle the signals */
haproxy_unblock_signals();

/* send "READY" message to remove status PROC_O_INIT for the newly forked worker,
* master will send TERM to the previous in _send_status()
*/
Expand Down Expand Up @@ -4062,6 +4059,9 @@ int main(int argc, char **argv)
ha_free(&msg);
}

/* when multithreading we need to let only the thread 0 handle the signals */
haproxy_unblock_signals();

/* Finally, start the poll loop for the first thread */
run_thread_poll_loop(&ha_thread_info[0]);

Expand Down

0 comments on commit eb1c090

Please sign in to comment.