earlyoom: fix patch for version 1.9.0 (#496571)

This commit is contained in:
Aleksana
2026-03-06 14:31:36 +00:00
committed by GitHub
@@ -1,6 +1,15 @@
--- a/kill.c
+++ b/kill.c
@@ -175,7 +175,7 @@ static void notify_dbus(const char* body)
@@ -153,7 +153,7 @@ static void notify_spawn_subprocess(const char* script, char* const argv[], cons
}
debug("%s: exec %s\n", __func__, script);
- execv(script, argv);
+ execvp(script, argv);
warn("%s: exec %s failed: %s\n", __func__, script, strerror(errno));
exit(1);
}
@@ -177,7 +177,7 @@ static void notify_dbus(const char* body)
body2,
NULL
};