Blame SOURCES/0007-util-server-improved-debug-at-shutdown.patch
|
|
0d097b |
From 3f52de891cba55230730602d41c3811cf1b17d96 Mon Sep 17 00:00:00 2001
|
|
|
0d097b |
From: Alexey Tikhonov <atikhono@redhat.com>
|
|
|
0d097b |
Date: Mon, 9 Dec 2019 18:26:56 +0100
|
|
|
0d097b |
Subject: [PATCH 7/7] util/server: improved debug at shutdown
|
|
|
0d097b |
MIME-Version: 1.0
|
|
|
0d097b |
Content-Type: text/plain; charset=UTF-8
|
|
|
0d097b |
Content-Transfer-Encoding: 8bit
|
|
|
0d097b |
|
|
|
0d097b |
Relates: https://pagure.io/SSSD/sssd/issue/4088
|
|
|
0d097b |
|
|
|
0d097b |
Reviewed-by: Michal Židek <mzidek@redhat.com>
|
|
|
0d097b |
---
|
|
|
0d097b |
src/util/server.c | 3 ++-
|
|
|
0d097b |
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
0d097b |
|
|
|
0d097b |
diff --git a/src/util/server.c b/src/util/server.c
|
|
|
0d097b |
index ee57ac128..33524066e 100644
|
|
|
0d097b |
--- a/src/util/server.c
|
|
|
0d097b |
+++ b/src/util/server.c
|
|
|
0d097b |
@@ -242,7 +242,8 @@ void orderly_shutdown(int status)
|
|
|
0d097b |
kill(-getpgrp(), SIGTERM);
|
|
|
0d097b |
}
|
|
|
0d097b |
#endif
|
|
|
0d097b |
- if (status == 0) sss_log(SSS_LOG_INFO, "Shutting down");
|
|
|
0d097b |
+ DEBUG(SSSDBG_IMPORTANT_INFO, "Shutting down (status = %d)", status);
|
|
|
0d097b |
+ sss_log(SSS_LOG_INFO, "Shutting down (status = %d)", status);
|
|
|
0d097b |
exit(status);
|
|
|
0d097b |
}
|
|
|
0d097b |
|
|
|
0d097b |
--
|
|
|
0d097b |
2.20.1
|
|
|
0d097b |
|