summaryrefslogtreecommitdiff
path: root/net/nsd/patches
diff options
context:
space:
mode:
authorjoerg <joerg>2009-07-24 07:08:10 +0000
committerjoerg <joerg>2009-07-24 07:08:10 +0000
commitd8ae6d3b9d4574298cf29a75df38896541e61869 (patch)
tree2dae51e64cce06e9b180c69ba8b1bac3a0d4a2db /net/nsd/patches
parentd26e423629289b87e2a878974a5338ab70f78181 (diff)
downloadpkgsrc-d8ae6d3b9d4574298cf29a75df38896541e61869.tar.gz
Redirecting stdout and stderr with &> is not portable, fix this.
Issue raised by Koh-ichi Ito on nsd-users.
Diffstat (limited to 'net/nsd/patches')
-rw-r--r--net/nsd/patches/patch-ab18
1 files changed, 18 insertions, 0 deletions
diff --git a/net/nsd/patches/patch-ab b/net/nsd/patches/patch-ab
new file mode 100644
index 00000000000..19e43e847fb
--- /dev/null
+++ b/net/nsd/patches/patch-ab
@@ -0,0 +1,18 @@
+$NetBSD: patch-ab,v 1.3 2009/07/24 07:08:10 joerg Exp $
+
+--- nsdc.sh.in.orig 2009-07-24 09:04:04.000000000 +0200
++++ nsdc.sh.in
+@@ -195,11 +195,11 @@ controlled_stop() {
+ if [ $try -eq 1 ]; then
+ kill -TERM ${pid}
+ else
+- kill -TERM ${pid} &>/dev/null
++ kill -TERM ${pid} > /dev/null 2>&1
+ fi
+
+ # really stopped?
+- kill -0 ${pid} &>/dev/null
++ kill -0 ${pid} > /dev/null 2>&1
+ if [ $? -eq 0 ]; then
+ controlled_sleep ${try}
+ try=`expr ${try} + 1`