diff options
Diffstat (limited to 'util-src/pposix.c')
-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"); |