diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-04-08 21:08:18 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-04-08 21:08:18 -0400 |
commit | 045e00cf16c47bc516c0823d059b7548f3ce9c7c (patch) | |
tree | 01ec6abcb1a8074305a5483d0123f4f221dfc7dc /src/udev | |
parent | 164d025dd3c92b9643f5e1d01cb5c9a8987fc2dc (diff) |
udevd: use (void) to silence coverity
CID #1351429.
Diffstat (limited to 'src/udev')
-rw-r--r-- | src/udev/udevd.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c index 243df7386f..e9dd2f47c7 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 (;;) { |