summaryrefslogtreecommitdiff
path: root/meta/3rd/OpenResty/library/ngx/process.lua
diff options
context:
space:
mode:
Diffstat (limited to 'meta/3rd/OpenResty/library/ngx/process.lua')
m---------meta/3rd/OpenResty0
-rw-r--r--meta/3rd/OpenResty/library/ngx/process.lua52
2 files changed, 0 insertions, 52 deletions
diff --git a/meta/3rd/OpenResty b/meta/3rd/OpenResty
new file mode 160000
+Subproject 3bec36f0f645bb38b3c8208990d5c36feb66ce3
diff --git a/meta/3rd/OpenResty/library/ngx/process.lua b/meta/3rd/OpenResty/library/ngx/process.lua
deleted file mode 100644
index 3a2e424e..00000000
--- a/meta/3rd/OpenResty/library/ngx/process.lua
+++ /dev/null
@@ -1,52 +0,0 @@
----@meta
-local process = {
- version = require("resty.core.base").version,
-}
-
---- Returns a number value for the nginx master process's process ID (or PID).
----
----@return integer? pid
-function process.get_master_pid() end
-
-
---- Enables the privileged agent process in Nginx.
----
---- The privileged agent process does not listen on any virtual server ports
---- like those worker processes. And it uses the same system account as the
---- nginx master process, which is usually a privileged account like root.
----
---- The `init_worker_by_lua*` directive handler still runs in the privileged
---- agent process. And one can use the `type()` function provided by this module
---- to check if the current process is a privileged agent.
----
---- In case of failures, returns `nil` and a string describing the error.
----
----@param connections integer sets the maximum number of simultaneous connections that can be opened by the privileged agent process.
----@return boolean ok
----@return string? error
-function process.enable_privileged_agent(connections) end
-
-
----@alias ngx.process.type
----| '"master"' # the NGINX master process
----| '"worker"' # an NGINX worker process
----| '"privileged agent"' # the NGINX privileged agent process
----| '"single"' # returned when Nginx is running in the single process mode
----| '"signaller"' # returned when Nginx is running as a signaller process
-
---- Returns the type of the current NGINX process.
----
----@return ngx.process.type type
-function process.type() end
-
-
---- Signals the current NGINX worker process to quit gracefully, after all the
---- timers have expired (in time or expired prematurely).
----
---- Note that this API function simply sets the nginx global C variable
---- `ngx_quit` to signal the nginx event loop directly. No UNIX signals or IPC
---- are involved here.
-function process.signal_graceful_exit() end
-
-
-return process \ No newline at end of file