1
0
mirror of https://github.com/systemd/systemd.git synced 2025-09-14 09:44:38 +03:00

udevd: use (void) to silence coverity

CID #1351429.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2016-04-08 21:08:18 -04:00
parent 164d025dd3
commit 045e00cf16

View File

@@ -400,10 +400,11 @@ static void worker_spawn(Manager *manager, struct event *event) {
goto out; goto out;
} }
/* request TERM signal if parent exits */ /* Request TERM signal if parent exits.
prctl(PR_SET_PDEATHSIG, SIGTERM); 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); write_string_file("/proc/self/oom_score_adj", "0", 0);
for (;;) { for (;;) {