3
* Copyright (C) Yichun Zhang (agentzh)
13
#include "ngx_http_lua_worker.h"
16
static int ngx_http_lua_ngx_worker_exiting(lua_State *L);
20
ngx_http_lua_inject_worker_api(lua_State *L)
22
lua_createtable(L, 0 /* narr */, 1 /* nrec */); /* ngx.timer. */
24
lua_pushcfunction(L, ngx_http_lua_ngx_worker_exiting);
25
lua_setfield(L, -2, "exiting");
27
lua_setfield(L, -2, "worker");
32
ngx_http_lua_ngx_worker_exiting(lua_State *L)
34
lua_pushboolean(L, ngx_exiting);