Branch oldpackages for 14.07
[14.07/packages.git] / net / djbdns / patches / 270-dnscache-sigpipe-fix.patch
1 --- a/dnscache.c
2 +++ b/dnscache.c
3 @@ -1,4 +1,5 @@
4  #include <unistd.h>
5 +#include <signal.h>
6  #include "env.h"
7  #include "exit.h"
8  #include "scan.h"
9 @@ -391,6 +392,7 @@ int main()
10    char *x;
11    unsigned long cachesize;
12  
13 +  signal(SIGPIPE, SIG_IGN);
14    x = env_get("IP");
15    if (!x)
16      strerr_die2x(111,FATAL,"$IP not set");