INN commit: trunk/backends (sendinpaths.in)

INN Commit rra at isc.org
Sat Apr 16 08:05:45 UTC 2011


    Date: Saturday, April 16, 2011 @ 01:05:45
  Author: iulius
Revision: 9192

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:
  trunk/backends/sendinpaths.in

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

Modified: sendinpaths.in
===================================================================
--- sendinpaths.in	2011-04-16 08:01:33 UTC (rev 9191)
+++ sendinpaths.in	2011-04-16 08:05:45 UTC (rev 9192)
@@ -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