Blame SOURCES/0173-core-service-check-if-mainpid-matches-only-if-it-is-.patch
|
|
9fc0f6 |
From 32e036b9baa6e9c9ecc90ae5db558db0a93847b2 Mon Sep 17 00:00:00 2001
|
|
|
9fc0f6 |
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
|
|
|
9fc0f6 |
Date: Mon, 30 Dec 2013 11:21:56 -0500
|
|
|
9fc0f6 |
Subject: [PATCH] core/service: check if mainpid matches only if it is set
|
|
|
9fc0f6 |
|
|
|
9fc0f6 |
https://bugzilla.redhat.com/show_bug.cgi?id=1047304
|
|
|
9fc0f6 |
|
|
|
9fc0f6 |
Conflicts:
|
|
|
9fc0f6 |
src/core/service.c
|
|
|
9fc0f6 |
---
|
|
|
9fc0f6 |
src/core/service.c | 2 +-
|
|
|
9fc0f6 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
9fc0f6 |
|
|
|
9fc0f6 |
diff --git a/src/core/service.c b/src/core/service.c
|
|
|
9fc0f6 |
index 62ae8f0..f0acda1 100644
|
|
|
9fc0f6 |
--- a/src/core/service.c
|
|
|
9fc0f6 |
+++ b/src/core/service.c
|
|
|
9fc0f6 |
@@ -3400,7 +3400,7 @@ static void service_notify_message(Unit *u, pid_t pid, char **tags) {
|
|
|
9fc0f6 |
return;
|
|
|
9fc0f6 |
}
|
|
|
9fc0f6 |
|
|
|
9fc0f6 |
- if (s->notify_access == NOTIFY_MAIN && pid != s->main_pid) {
|
|
|
9fc0f6 |
+ if (s->notify_access == NOTIFY_MAIN && s->main_pid != 0 && pid != s->main_pid) {
|
|
|
9fc0f6 |
log_warning_unit(u->id,
|
|
|
9fc0f6 |
"%s: Got notification message from PID %lu, but reception only permitted for PID %lu",
|
|
|
9fc0f6 |
u->id, (unsigned long) pid, (unsigned long) s->main_pid);
|