summaryrefslogtreecommitdiff
path: root/src/journal/journald-native.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-01-12 02:03:23 +0100
committerLennart Poettering <lennart@poettering.net>2016-01-12 02:03:23 +0100
commitf466acdc633fc496961eff0c7f66501f4588e5b6 (patch)
tree753eed3ff217ec8578fc6d1ecb86f6ed7ced2517 /src/journal/journald-native.c
parenta41a7181c9af8f9ac93a85a2cf133294dd202c8e (diff)
parent48cef29504b1ffc0df9929f2d8b2af2ad74d2b4a (diff)
Merge pull request #2290 from vcaputo/normalize-log-source-priorities
journal: normalize priority of logging sources
Diffstat (limited to 'src/journal/journald-native.c')
-rw-r--r--src/journal/journald-native.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/journal/journald-native.c b/src/journal/journald-native.c
index 371df5b37f..f80a6ebfe5 100644
--- a/src/journal/journald-native.c
+++ b/src/journal/journald-native.c
@@ -495,5 +495,9 @@ int server_open_native_socket(Server*s) {
if (r < 0)
return log_error_errno(r, "Failed to add native server fd to event loop: %m");
+ r = sd_event_source_set_priority(s->native_event_source, SD_EVENT_PRIORITY_NORMAL+5);
+ if (r < 0)
+ return log_error_errno(r, "Failed to adjust native event source priority: %m");
+
return 0;
}