summaryrefslogtreecommitdiff
path: root/src/udev/udevd.c
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2016-04-11 11:19:27 +0200
committerMartin Pitt <martin.pitt@ubuntu.com>2016-04-11 11:19:27 +0200
commit14b662590144571985897855f9973f16e386e0ce (patch)
tree1bd53b773f592dc583aff4635537a10a6f89fcaa /src/udev/udevd.c
parentcbe22206143a04f573e5cfbc8c839ddf2fd8c5dc (diff)
parent7236ce6e9e379948217c31f38b48de6448521162 (diff)
Merge pull request #2996 from keszybz/coverity-fixes
Coverity fixes
Diffstat (limited to 'src/udev/udevd.c')
-rw-r--r--src/udev/udevd.c7
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 (;;) {