From 06b404feb17dec9e3a84da31e213f21a0a9b4846 Mon Sep 17 00:00:00 2001 From: Alexander Borisov Date: Thu, 15 Nov 2018 15:39:34 +0300 Subject: Node.js: added correct exit processing. Node.js processes didn't exit after the changes in b9f7635e6be2, as the quit command from port wasn't handled by the module. --- src/nodejs/unit-http/unit.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/nodejs/unit-http/unit.h') diff --git a/src/nodejs/unit-http/unit.h b/src/nodejs/unit-http/unit.h index 90c67efc..5f541cc4 100644 --- a/src/nodejs/unit-http/unit.h +++ b/src/nodejs/unit-http/unit.h @@ -40,6 +40,7 @@ private: static void request_handler(nxt_unit_request_info_t *req); static int add_port(nxt_unit_ctx_t *ctx, nxt_unit_port_t *port); static void remove_port(nxt_unit_ctx_t *ctx, nxt_unit_port_id_t *port_id); + static void quit(nxt_unit_ctx_t *ctx); napi_value get_server_object(); -- cgit