GNU bug report logs - #30928
nice: add option to abort on failure to change priority

Previous Next

Package: coreutils;

Reported by: L A Walsh <coreutils <at> tlinx.org>

Date: Sat, 24 Mar 2018 19:50:02 UTC

Severity: wishlist

Full log


View this message in rfc822 format

From: Bernhard Voelker <mail <at> bernhard-voelker.de>
To: Paul Eggert <eggert <at> cs.ucla.edu>, L A Walsh <coreutils <at> tlinx.org>, 30928 <at> debbugs.gnu.org
Subject: bug#30928: no error val returned by 'nice' failure?
Date: Sun, 25 Mar 2018 00:06:47 +0100
On 03/24/2018 10:09 PM, Paul Eggert wrote:
> L A Walsh wrote:
>> how do you tell if the resetting of the
>> priority worked or failed?
> 
> I guess you're supposed to look at stderr, which is what you did.
> 
> This is the way 'nice' has behaved for quite some time, and it's what POSIX 
> specifies. We'd need a real good reason to change it, given that changing it 
> would no doubt break stuff.

Anyway, it wouldn't harm to document this behavior in the Texinfo
manual... the sentence from the POSIX spec sounds quote good:

  http://pubs.opengroup.org/onlinepubs/9699919799/utilities/nice.html

  If the user lacks appropriate privileges to affect the nice value
  in the requested manner, the nice utility shall not affect the
  nice value; in this case, a warning message may be written to
  standard error, but this shall not prevent the invocation of
  /utility/ or affect the exit status.

Have a nice day,
Berny




This bug report was last modified 6 years and 228 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.