prosody: Fixed a possible nil concatenation.
[prosody.git] / util-src / pposix.c
index 265245e0d53bf7bac5e193395f14cdcf00a2ef8b..94086ed64dc3ca24e77e7e8faec8a24dcecd7d96 100644 (file)
@@ -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");