Blame SOURCES/Exit-with-status-0-from-kadmind.patch

c41359
From 3bfe632c7011c335362d78356232507d9ee26f73 Mon Sep 17 00:00:00 2001
c41359
From: Robbie Harwood <rharwood@redhat.com>
c41359
Date: Wed, 14 Mar 2018 14:31:22 -0400
c41359
Subject: [PATCH] Exit with status 0 from kadmind
c41359
c41359
Typically, 0 denotes successful exit.  In particular, init systems
c41359
will complain if another different value is returned.  This presents a
c41359
problem for automated installation jobs which want to restart kadmind.
c41359
c41359
`service kadmin stop` typically sends SIGTERM, which is caught by
c41359
verto and passed to our handler.  Besides cleanup, we then call
c41359
verto_break(), which causes the verto_run() event loop to return.  The
c41359
weird return code has been present since the addition of the kadmin
c41359
code, which used a similar event model for signals.
c41359
c41359
(cherry picked from commit f970ad412aca36f8a7d3addb1cd4026ed22e5592)
c41359
---
c41359
 src/kadmin/server/ovsec_kadmd.c | 2 +-
c41359
 1 file changed, 1 insertion(+), 1 deletion(-)
c41359
c41359
diff --git a/src/kadmin/server/ovsec_kadmd.c b/src/kadmin/server/ovsec_kadmd.c
c41359
index aac4d4ffd..0a28b2384 100644
c41359
--- a/src/kadmin/server/ovsec_kadmd.c
c41359
+++ b/src/kadmin/server/ovsec_kadmd.c
c41359
@@ -559,5 +559,5 @@ main(int argc, char *argv[])
c41359
 
c41359
     krb5_klog_close(context);
c41359
     krb5_free_context(context);
c41359
-    exit(2);
c41359
+    exit(0);
c41359
 }