]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Exit with status 0 from kadmind 745/head
authorRobbie Harwood <rharwood@redhat.com>
Wed, 14 Mar 2018 18:31:22 +0000 (14:31 -0400)
committerGreg Hudson <ghudson@mit.edu>
Thu, 15 Mar 2018 03:30:42 +0000 (23:30 -0400)
Typically, 0 denotes successful exit.  In particular, init systems
will complain if another different value is returned.  This presents a
problem for automated installation jobs which want to restart kadmind.

`service kadmin stop` typically sends SIGTERM, which is caught by
verto and passed to our handler.  Besides cleanup, we then call
verto_break(), which causes the verto_run() event loop to return.  The
weird return code has been present since the addition of the kadmin
code, which used a similar event model for signals.

ticket: 8650 (new)

src/kadmin/server/ovsec_kadmd.c

index 6c875901a976063aebcd3d36582215e9ac03ffe5..936955b899f7a24c353d42f9f642fcbd5739cbcf 100644 (file)
@@ -560,5 +560,5 @@ main(int argc, char *argv[])
 
     krb5_klog_close(context);
     krb5_free_context(context);
-    exit(2);
+    exit(0);
 }