INN 2.5.2: Minor sendinpaths bug
River Tarnell
river at RT.UK.EU.ORG
Mon Dec 31 03:38:41 UTC 2012
Every day, I receive the following mail:
Date: Mon, 31 Dec 2012 00:10:00 +0000 (GMT)
From: Cron Daemon <news at ARYA.ORG.UK>
To: news at ARYA.ORG.UK
Subject: Cron <news at tamara> /usr/local/news/bin/sendinpaths
62955: old priority 0, new priority 20
The problem is this line in bin/sendinpaths:
# Renice to give other processes priority, since this isn't too important.
renice 20 -p $$ > /dev/null
On FreeBSD, the renice output goes to stderr.
$ renice -n 10 $$ >/dev/null
88972: old priority 0, new priority 10
$ renice -n 10 $$ >/dev/null 2>&1
$
So, I suggest adding 2>&1 at the end of the line. There's nothing that
can really go wrong there, and even if it did it wouldn't really matter,
so I don't see any issue with discarding other error messages.
- river.
More information about the inn-workers
mailing list