diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-11-12 22:01:41 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-11-12 22:01:41 +0100 |
commit | 76e0779b5c7e85c7b69b2fffe5acaa7e9f12adbc (patch) | |
tree | 6dd8c5fcfd07e566a1572f84ec8ff55f9a80ce4f /src | |
parent | b0bcf47221335e03471946eae58c5e7e05e3a0c8 (diff) | |
parent | df0060346ae326bf3c21140ddb3f0ffa519e2e7f (diff) |
Merge pull request #1870 from evverx/clarify_set_priority
core: use SD_EVENT_PRIORITY_NORMAL-n instead on -n
Diffstat (limited to 'src')
-rw-r--r-- | src/core/manager.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/manager.c b/src/core/manager.c index f712ac29dc..099bfe4268 100644 --- a/src/core/manager.c +++ b/src/core/manager.c @@ -486,7 +486,7 @@ static int manager_setup_signals(Manager *m) { * later than notify_fd processing, so that the notify * processing can still figure out to which process/service a * message belongs, before we reap the process. */ - r = sd_event_source_set_priority(m->signal_event_source, -5); + r = sd_event_source_set_priority(m->signal_event_source, SD_EVENT_PRIORITY_NORMAL-5); if (r < 0) return r; @@ -734,7 +734,7 @@ static int manager_setup_notify(Manager *m) { /* Process signals a bit earlier than SIGCHLD, so that we can * still identify to which service an exit message belongs */ - r = sd_event_source_set_priority(m->notify_event_source, -7); + r = sd_event_source_set_priority(m->notify_event_source, SD_EVENT_PRIORITY_NORMAL-7); if (r < 0) return log_error_errno(r, "Failed to set priority of notify event source: %m"); |