fixup! WIP: find libsystemd with autoconfig
This commit is contained in:
11
kadmin/rpc.c
11
kadmin/rpc.c
@@ -36,6 +36,9 @@
|
||||
#include <gssapi.h>
|
||||
#include <gssapi_krb5.h>
|
||||
#include <gssapi_spnego.h>
|
||||
#ifdef HAVE_SYSTEMD
|
||||
#include <systemd/sd-daemon.h>
|
||||
#endif
|
||||
|
||||
#define CHECK(x) \
|
||||
do { \
|
||||
@@ -799,6 +802,10 @@ process_stream(krb5_context contextp,
|
||||
*/
|
||||
|
||||
INSIST(ilen >= 4);
|
||||
|
||||
#ifdef HAVE_SYSTEMD
|
||||
sd_notify(0, "READY=1");
|
||||
#endif
|
||||
|
||||
while (1) {
|
||||
struct call_header chdr;
|
||||
@@ -1129,6 +1136,10 @@ process_stream(krb5_context contextp,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#ifdef HAVE_SYSTEMD
|
||||
sd_notify(0, "STOPPING=1");
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user