{"id":13776249,"url":"https://github.com/openresty/lua-resty-signal","last_synced_at":"2026-03-04T10:32:20.763Z","repository":{"id":48862209,"uuid":"168475066","full_name":"openresty/lua-resty-signal","owner":"openresty","description":"Lua library for killing or sending signals to UNIX processes","archived":false,"fork":false,"pushed_at":"2025-12-17T00:48:01.000Z","size":24,"stargazers_count":34,"open_issues_count":2,"forks_count":15,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-12-20T02:27:14.225Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Raku","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openresty.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-01-31T06:31:32.000Z","updated_at":"2025-12-16T12:32:46.000Z","dependencies_parsed_at":"2024-01-13T07:48:18.639Z","dependency_job_id":"329bec8b-3d12-4566-9796-007e9ec09195","html_url":"https://github.com/openresty/lua-resty-signal","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/openresty/lua-resty-signal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openresty%2Flua-resty-signal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openresty%2Flua-resty-signal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openresty%2Flua-resty-signal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openresty%2Flua-resty-signal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openresty","download_url":"https://codeload.github.com/openresty/lua-resty-signal/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openresty%2Flua-resty-signal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30078308,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T08:01:56.766Z","status":"ssl_error","status_checked_at":"2026-03-04T08:00:42.919Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T18:00:20.584Z","updated_at":"2026-03-04T10:32:20.742Z","avatar_url":"https://github.com/openresty.png","language":"Raku","funding_links":[],"categories":["Libraries"],"sub_categories":[],"readme":"Name\n====\n\nlua-resty-signal - Lua library for killing or sending signals to Linux processes\n\nTable of Contents\n=================\n\n* [Name](#name)\n* [Synopsis](#synopsis)\n* [Functions](#functions)\n    * [kill](#kill)\n    * [signum](#signum)\n* [Author](#author)\n* [Copyright \u0026 Licenses](#copyright--licenses)\n\nSynopsis\n========\n\n```lua\nlocal resty_signal = require \"resty.signal\"\nlocal pid = 12345\n\nlocal ok, err = resty_signal.kill(pid, \"TERM\")\nif not ok then\n    ngx.log(ngx.ERR, \"failed to kill process of pid \", pid, \": \", err)\n    return\nend\n\n-- send the signal 0 to check the existence of a process\nlocal ok, err = resty_signal.kill(pid, \"NONE\")\n\nlocal ok, err = resty_signal.kill(pid, \"HUP\")\n\nlocal ok, err = resty_signal.kill(pid, \"KILL\")\n```\n\nFunctions\n=========\n\nkill\n----\n\n**syntax:** `ok, err = resty_signal.kill(pid, signal_name_or_num)`\n\nSends a signal with its name string or number value to the process of the\nspecified pid.\n\nAll signal names accepted by [signum](#signum) are supported, like `HUP`,\n`KILL`, and `TERM`.\n\nSignal numbers are also supported when specifying nonportable system-specific\nsignals is desired.\n\n[Back to TOC](#table-of-contents)\n\nsignum\n------\n\n**syntax:** `num = resty_signal.signum(sig_name)`\n\nMaps the signal name specified to the system-specific signal number. Returns\n`nil` if the signal name is not known.\n\nAll the POSIX and BSD signal names are supported:\n\n```\nHUP\nINT\nQUIT\nILL\nTRAP\nABRT\nBUS\nFPE\nKILL\nUSR1\nSEGV\nUSR2\nPIPE\nALRM\nTERM\nCHLD\nCONT\nSTOP\nTSTP\nTTIN\nTTOU\nURG\nXCPU\nXFSZ\nVTALRM\nPROF\nWINCH\nIO\nPWR\nEMT\nSYS\nINFO\n```\n\nThe special signal name `NONE` is also supported, which is mapped to zero (0).\n\n[Back to TOC](#table-of-contents)\n\nAuthor\n======\n\nYichun Zhang (agentzh) \u003cyichun@openresty.com\u003e\n\n[Back to TOC](#table-of-contents)\n\nCopyright \u0026 Licenses\n====================\n\nThis module is licensed under the BSD license.\n\nCopyright (C) 2018-2019, [OpenResty Inc.](https://openresty.com)\n\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\n\n* Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n[Back to TOC](#table-of-contents)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenresty%2Flua-resty-signal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenresty%2Flua-resty-signal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenresty%2Flua-resty-signal/lists"}