]> git.donarmstrong.com Git - unscd.git/blob - debian/patches/notify_systemd_about_successful_startup
refresh patches
[unscd.git] / debian / patches / notify_systemd_about_successful_startup
1 From: =?utf-8?q?Ferenc_W=C3=A1gner?= <wferi@debian.org>
2 Date: Thu, 31 May 2018 11:56:10 +0200
3 Subject: Notify systemd about successful startup
4
5 ---
6  nscd.c | 4 ++++
7  1 file changed, 4 insertions(+)
8
9 --- a/nscd.c
10 +++ b/nscd.c
11 @@ -99,6 +99,8 @@
12  /* For inet_ntoa (for debug build only) */
13  #include <arpa/inet.h>
14  
15 +#include <systemd/sd-daemon.h>
16 +
17  /*
18   * 0.21 add SEGV reporting to worker
19   * 0.22 don't do freeaddrinfo() in GETAI worker, it's crashy
20 @@ -2663,6 +2665,8 @@
21                 config.nttl[n] *= 1000;
22         }
23  
24 +       sd_notify (0, "READY=1");
25 +
26         main_loop();
27  
28         return 0;