From: Yu Watanabe Date: Sun, 17 Jan 2021 16:22:39 +0000 (+0900) Subject: core: do not fail when an invalid cpu affinity is specified X-Git-Tag: v248-rc1~311^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ca9169f47f0fd2fbdf93666fb75d51524c3ce30c;p=thirdparty%2Fsystemd.git core: do not fail when an invalid cpu affinity is specified --- diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c index 494c7f55a7d..940d9217ccc 100644 --- a/src/core/load-fragment.c +++ b/src/core/load-fragment.c @@ -1682,16 +1682,17 @@ int config_parse_exec_root_hash_sig( return 0; } -int config_parse_exec_cpu_affinity(const char *unit, - const char *filename, - unsigned line, - const char *section, - unsigned section_line, - const char *lvalue, - int ltype, - const char *rvalue, - void *data, - void *userdata) { +int config_parse_exec_cpu_affinity( + const char *unit, + const char *filename, + unsigned line, + const char *section, + unsigned section_line, + const char *lvalue, + int ltype, + const char *rvalue, + void *data, + void *userdata) { ExecContext *c = data; int r; @@ -1712,7 +1713,7 @@ int config_parse_exec_cpu_affinity(const char *unit, if (r >= 0) c->cpu_affinity_from_numa = false; - return r; + return 0; } int config_parse_capability_set(