summaryrefslogtreecommitdiff
path: root/sub/dnscache/djbdns-readiness-notification.patch
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-05-22 21:56:04 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-05-22 21:56:04 +0000
commit82d0f92ab8b84466ae20ab919c1f9c3577b5cecb (patch)
tree776015ae6c6a386125b2d39e13b62f91b99548f8 /sub/dnscache/djbdns-readiness-notification.patch
downloadlh-bootstrap-82d0f92ab8b84466ae20ab919c1f9c3577b5cecb.tar.xz
Initial commit
Diffstat (limited to 'sub/dnscache/djbdns-readiness-notification.patch')
-rw-r--r--sub/dnscache/djbdns-readiness-notification.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/sub/dnscache/djbdns-readiness-notification.patch b/sub/dnscache/djbdns-readiness-notification.patch
new file mode 100644
index 0000000..2e1be53
--- /dev/null
+++ b/sub/dnscache/djbdns-readiness-notification.patch
@@ -0,0 +1,21 @@
+--- src.old/dnscache.c
++++ src/dnscache.c
+@@ -445,5 +445,7 @@
+ strerr_die2sys(111,FATAL,"unable to listen on TCP socket: ");
+
+ log_startup();
++ write(1, "\n", 1);
++ close(1);
+ doit();
+ }
+--- src.old/server.c
++++ src/server.c
+@@ -104,6 +104,8 @@
+ socket_tryreservein(udp53,65536);
+
+ buffer_putsflush(buffer_2,starting);
++ write(1, "\n", 1);
++ close(1);
+
+ for (;;) {
+ len = socket_recv4(udp53,buf,sizeof buf,ip,&port);