diff options
author | joerg <joerg@pkgsrc.org> | 2009-07-24 07:08:10 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2009-07-24 07:08:10 +0000 |
commit | 7c95b18c77829d13307e480500fb1f6b573369ad (patch) | |
tree | 2dae51e64cce06e9b180c69ba8b1bac3a0d4a2db /net/nsd/patches | |
parent | 1867b3cb4c39920411d887fa4678ca8198118dda (diff) | |
download | pkgsrc-7c95b18c77829d13307e480500fb1f6b573369ad.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-ab | 18 |
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` |