From: Zbigniew Jędrzejewski-Szmek Date: Sat, 9 Apr 2016 01:08:18 +0000 (-0400) Subject: udevd: use (void) to silence coverity X-Git-Tag: v230~194^2~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=045e00cf16c47bc516c0823d059b7548f3ce9c7c;p=thirdparty%2Fsystemd.git udevd: use (void) to silence coverity CID #1351429. --- diff --git a/src/udev/udevd.c b/src/udev/udevd.c index 243df7386fe..e9dd2f47c73 100644 --- a/src/udev/udevd.c +++ b/src/udev/udevd.c @@ -400,10 +400,11 @@ static void worker_spawn(Manager *manager, struct event *event) { goto out; } - /* request TERM signal if parent exits */ - prctl(PR_SET_PDEATHSIG, SIGTERM); + /* Request TERM signal if parent exits. + Ignore error, not much we can do in that case. */ + (void) prctl(PR_SET_PDEATHSIG, SIGTERM); - /* reset OOM score, we only protect the main daemon */ + /* Reset OOM score, we only protect the main daemon. */ write_string_file("/proc/self/oom_score_adj", "0", 0); for (;;) {