diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-10-30 01:18:38 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-10-30 01:18:38 +0000 |
commit | 0dcc6dc478ae2bac41377f531ffc737dc3de78b0 (patch) | |
tree | a876790dbc7b215f6b36aed919c215c55068ae49 | |
parent | e61fe22f948aba7db734bc849fd2f9247b5ebf5e (diff) | |
download | prosody-0dcc6dc478ae2bac41377f531ffc737dc3de78b0.tar.gz prosody-0dcc6dc478ae2bac41377f531ffc737dc3de78b0.zip |
util.pposix: Add abort() function
-rw-r--r-- | util-src/pposix.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/util-src/pposix.c b/util-src/pposix.c index 265245e0..94086ed6 100644 --- a/util-src/pposix.c +++ b/util-src/pposix.c @@ -463,12 +463,20 @@ int lc_getrlimit(lua_State *L) { return 3; } +void lc_abort(lua_State* L) +{ + abort(); +} + /* Register functions */ int luaopen_util_pposix(lua_State *L) { lua_newtable(L); + lua_pushcfunction(L, lc_abort); + lua_setfield(L, -2, "abort"); + lua_pushcfunction(L, lc_daemonize); lua_setfield(L, -2, "daemonize"); |