projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
164d025
)
udevd: use (void) to silence coverity
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Sat, 9 Apr 2016 01:08:18 +0000
(21:08 -0400)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Sat, 9 Apr 2016 01:08:18 +0000
(21:08 -0400)
CID #
1351429
.
src/udev/udevd.c
patch
|
blob
|
history
diff --git
a/src/udev/udevd.c
b/src/udev/udevd.c
index 243df7386fe1e78fdea6d6af9ff233ee4589c1c9..e9dd2f47c730c289af07ec6b36b657e9f42202f8 100644
(file)
--- 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 (;;) {