Skip to content

Commit

Permalink
triggers: Follow up to 380ac7f
Browse files Browse the repository at this point in the history
Use _exit for triggers too.
  • Loading branch information
evadot committed Nov 2, 2020
1 parent 8ccac50 commit 6db0093
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libpkg/triggers.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,14 +407,14 @@ trigger_execute_lua(const char *script, kh_strings_t *args)
if (luaL_dostring(L, script)) {
pkg_emit_error("Failed to execute lua trigger: "
"%s", lua_tostring(L, -1));
exit(1);
_exit(1);
}
if (lua_tonumber(L, -1) != 0) {
lua_close(L);
exit(1);
_exit(1);
}
lua_close(L);
exit(0);
_exit(0);
} else if (pid < 0) {
pkg_emit_errno("Cannot fork", "lua_script");
return (EPKG_FATAL);
Expand Down

0 comments on commit 6db0093

Please sign in to comment.