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.
This commit is contained in:
Alexander Borisov
2018-11-15 15:39:34 +03:00
parent 71f4cb9134
commit 06b404feb1
2 changed files with 43 additions and 18 deletions

View File

@@ -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();