summaryrefslogtreecommitdiffhomepage
path: root/src/nodejs/unit-http/unit.h
diff options
context:
space:
mode:
authorAlexander Borisov <alexander.borisov@nginx.com>2018-11-15 15:39:34 +0300
committerAlexander Borisov <alexander.borisov@nginx.com>2018-11-15 15:39:34 +0300
commit06b404feb17dec9e3a84da31e213f21a0a9b4846 (patch)
tree248c1a6bec69d3eb358a680a561d48f792b51893 /src/nodejs/unit-http/unit.h
parent71f4cb91340b656397eaaa356755b4a1e31c8010 (diff)
downloadunit-06b404feb17dec9e3a84da31e213f21a0a9b4846.tar.gz
unit-06b404feb17dec9e3a84da31e213f21a0a9b4846.tar.bz2
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.
Diffstat (limited to 'src/nodejs/unit-http/unit.h')
-rw-r--r--src/nodejs/unit-http/unit.h1
1 files changed, 1 insertions, 0 deletions
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();