From: Vaclav Dolezal Date: Tue, 17 Apr 2018 17:03:17 +0000 (+0200) Subject: choom: set oom_score_adj before exec X-Git-Tag: v2.33-rc1~275^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=106876b953f2a6f627e03e7e0218bd67c35ac78c;p=thirdparty%2Futil-linux.git choom: set oom_score_adj before exec Signed-off-by: Vaclav Dolezal --- diff --git a/sys-utils/choom.c b/sys-utils/choom.c index 9920916c1c..21cb0ee103 100644 --- a/sys-utils/choom.c +++ b/sys-utils/choom.c @@ -139,6 +139,8 @@ int main(int argc, char **argv) /* Start new process */ } else { + if (set_score_adj(getpid(), adj)) + err(EXIT_FAILURE, _("failed to set score adjust value")); argv += optind; execvp(argv[0], argv); errexec(argv[0]);