1 |
diff -Nur -x '*.orig' -x '*.rej' e-smith-dnscache-1.0.0/root/var/service/dnscache/run mezzanine_patched_e-smith-dnscache-1.0.0/root/var/service/dnscache/run |
2 |
--- e-smith-dnscache-1.0.0/root/var/service/dnscache/run 2007-09-06 13:01:41.000000000 -0400 |
3 |
+++ mezzanine_patched_e-smith-dnscache-1.0.0/root/var/service/dnscache/run 2007-09-06 13:01:10.000000000 -0400 |
4 |
@@ -117,6 +117,8 @@ |
5 |
$ENV{CACHESIZE} = 200000; |
6 |
$ENV{ROOT} = '/service/dnscache/root'; |
7 |
|
8 |
+# http://marc.theaimsgroup.com/?l=djbdns&m=104812086607532&w=2 |
9 |
+$SIG{'PIPE'} = 'IGNORE'; |
10 |
exec("envuidgid", "dnscache", "softlimit", "-o250", "-d", "$datalimit", |
11 |
"/usr/local/bin/dnscache") |
12 |
or die "failed to execute envuidgid/softlimit/dnscache: $!"; |
13 |
diff -Nur -x '*.orig' -x '*.rej' e-smith-dnscache-1.0.0/root/var/service/dnscache.forwarder/run mezzanine_patched_e-smith-dnscache-1.0.0/root/var/service/dnscache.forwarder/run |
14 |
--- e-smith-dnscache-1.0.0/root/var/service/dnscache.forwarder/run 2005-05-13 17:45:16.000000000 -0400 |
15 |
+++ mezzanine_patched_e-smith-dnscache-1.0.0/root/var/service/dnscache.forwarder/run 2007-09-06 13:01:23.000000000 -0400 |
16 |
@@ -1,4 +1,6 @@ |
17 |
#! /bin/sh |
18 |
exec 2>&1 |
19 |
. ./config |
20 |
+# http://marc.theaimsgroup.com/?l=djbdns&m=104812086607532&w=2 |
21 |
+trap "" SIGPIPE |
22 |
exec envuidgid dnscache softlimit -o250 -d "$DATALIMIT" /usr/local/bin/dnscache |