-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unhelpful warning: Warning, unable to set nice value #125
Comments
Nice is set internally in the program via -N option. There is no test for external use of the nice command. Should there be? |
Because nice is set with the command line option -N. The default is 19.
There is no internal test for external nice usage.
Why would you do this command anyway?
…On Thu, 24 Oct 2019 15:59:08 -0700 Ole Tange ***@***.***> wrote:
Running this:
```
$ echo | nice nice lrz | wc
```
should not give a warning. I have no opinion how to solve it.
--
Peter Hyman
(609)598-0262
(612)440-7383 (Pete)
|
The situation I discovered this in was a script that was called with Most UNIX commands I know will not renice themselves without explicitly being told to. They will let the user decide whether they should be niced or not. I am not sure renicing without telling the user adheres to Principle of Least Surprise. It seems backwards that the user will have to know I had hoped
That solution would fit well with the description from the man page:
|
BTW the same warning occurs using lrzip or lrzcat. It's not specific to lrz, as expected.
However, setting -N ## as a command line option, works fine.
It's an interesting exercise, but since lrzip handles niceness internally, is documented as such, and performs this function as intended, I would say this is not a bug, but a usage error. |
When I run
The manual for For that reason I think it would be fair that the setpriority is simply skipped if -N is not set when called as lrz. So:
|
This issue was dealt with in #136 . Issue can be closed. |
Unfortunately #136 did not address this problem, but I will shortly. |
When nicing lrz you get the following unhelpful warning:
According to
top
lrz
is niced as expected, so the warning is only confusing.The text was updated successfully, but these errors were encountered: