summaryrefslogtreecommitdiff
path: root/sub/dnscache/djbdns-readiness-notification.patch
blob: 2e1be53313ea6cdc932c9bb799fbf0089508524e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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);