Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
triggers: Follow up to 380ac7f31cf13db2332da414220b33cd906dcdc7
Emmanuel Vadot committed 5 years ago
commit 6db00938861e7f2989295966e1657c02a3fbec36
parent 8ccac5039c98e77dc56874c0de02f31c85dabedf
1 file changed +3 -3
modified libpkg/triggers.c
@@ -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);