INN commit: branches/2.5/backends (sendinpaths.in)

INN Commit rra at isc.org
Sat Apr 16 08:06:25 UTC 2011


    Date: Saturday, April 16, 2011 @ 01:06:25
  Author: iulius
Revision: 9193

On some OS (like FreeBSD), renice emits a status report to STDERR.

When using sendinpaths, which uses renice, in a cronjob, an email
is sent every time with that report.
STDERR is now redirected to /dev/null.

Thanks to Matthias Meyser for having reported the issue.

Modified:
  branches/2.5/backends/sendinpaths.in

----------------+
 sendinpaths.in |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: sendinpaths.in
===================================================================
--- sendinpaths.in	2011-04-16 08:05:45 UTC (rev 9192)
+++ sendinpaths.in	2011-04-16 08:06:25 UTC (rev 9193)
@@ -14,7 +14,7 @@
 defaddr="pathsurvey at top1000.org top1000 at anthologeek.net"
 
 # Renice to give other processes priority, since this isn't too important.
-renice 20 -p $$ > /dev/null
+renice 20 -p $$ > /dev/null 2>&1
 
 # Make report from (up to) $report days of dumps
 LOGS=`find . -name 'inpaths.*' ! -size 0 -mtime -$report -print`




More information about the inn-committers mailing list