Send inn-workers mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.isc.org/mailman/listinfo/inn-workers
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of inn-workers digest..."
Today's Topics:
1. INN 2.5.2: Minor sendinpaths bug (River Tarnell)
2. Re: INN 2.5.2: Minor sendinpaths bug (Russ Allbery)
----------------------------------------------------------------------
Message: 1
Date: Mon, 31 Dec 2012 03:38:41 +0000
From: River Tarnell <[email protected]>
To: [email protected]
Subject: INN 2.5.2: Minor sendinpaths bug
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii
Every day, I receive the following mail:
Date: Mon, 31 Dec 2012 00:10:00 +0000 (GMT)
From: Cron Daemon <[email protected]>
To: [email protected]
Subject: Cron <news@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.
------------------------------
Message: 2
Date: Sun, 30 Dec 2012 19:54:16 -0800
From: Russ Allbery <[email protected]>
To: [email protected]
Subject: Re: INN 2.5.2: Minor sendinpaths bug
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii
River Tarnell <[email protected]> writes:
> Every day, I receive the following mail:
> Date: Mon, 31 Dec 2012 00:10:00 +0000 (GMT)
> From: Cron Daemon <[email protected]>
> To: [email protected]
> Subject: Cron <news@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.
Fixed in INN 2.5.3 by dint of replacing the script with a rewritten
version in Perl.
--
Russ Allbery ([email protected]) <http://www.eyrie.org/~eagle/>
Please send questions to the list rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
------------------------------
_______________________________________________
inn-workers mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/inn-workers
End of inn-workers Digest, Vol 46, Issue 6
******************************************