diff options
author | Max Romanov <max.romanov@nginx.com> | 2017-07-06 18:38:51 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2017-07-06 18:38:51 +0300 |
commit | c56d2af3bcb10ca27b74c2fe123ea98dea07f0a0 (patch) | |
tree | 03e5469e6b32ccf31c52746c40358dd3f83e91d8 /src/nxt_worker_process.c | |
parent | e1219569f4433f9b45bc9db5c02c5cc5f66b69ab (diff) | |
download | unit-c56d2af3bcb10ca27b74c2fe123ea98dea07f0a0.tar.gz unit-c56d2af3bcb10ca27b74c2fe123ea98dea07f0a0.tar.bz2 |
Router: read configuration from port.
Controller: stub to send configuration from POST body "as is" to router.
Diffstat (limited to 'src/nxt_worker_process.c')
-rw-r--r-- | src/nxt_worker_process.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nxt_worker_process.c b/src/nxt_worker_process.c index 4c5b6888..b0c68160 100644 --- a/src/nxt_worker_process.c +++ b/src/nxt_worker_process.c @@ -8,6 +8,7 @@ #include <nxt_runtime.h> #include <nxt_port.h> #include <nxt_master_process.h> +#include <nxt_router.h> static void nxt_worker_process_quit(nxt_task_t *task); @@ -39,6 +40,15 @@ nxt_port_handler_t nxt_app_process_port_handlers[] = { }; +nxt_port_handler_t nxt_router_process_port_handlers[] = { + nxt_worker_process_quit_handler, + nxt_port_new_port_handler, + nxt_port_change_log_file_handler, + nxt_port_mmap_handler, + nxt_router_conf_data_handler, +}; + + const nxt_sig_event_t nxt_worker_process_signals[] = { nxt_event_signal(SIGHUP, nxt_worker_process_signal_handler), nxt_event_signal(SIGINT, nxt_worker_process_sigterm_handler), |