-
Notifications
You must be signed in to change notification settings - Fork 821
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
Error message with ZSH and use of "&" in Creators Update #1887
Comments
_z_precmd:1: nice(5) failed: operation not permitted It's not a fatal error so I'm outputting it to null so that the user doesn't see it.
Hey guys, since everything still works even when this operation fails, I just output it to null. This is linked to the previous commit mentioned above. |
Based on the message I presume zsh is trying to set the priority of the background process with nice. It looks like nice doesn't work on BoW:
I've attached strace.txt of:
It looks like the culprit is:
Searching, it looks like issue #1838 is open for that. This issue can be marked a duplicate of that one. |
There is a workaround. Tell zsh not to nice background processes. @ruixingw @kerren Add the following line to your
See the zsh documentation for more details. |
Thank you @daiconrad , the workaround works well. Close this issue and let's wait for #1838 . |
If you're going to use zplug, add |
Thank you! |
Creators Update (15063.138)
A fresh new WSL by:
Now in WSL:
sudo apt-get update
sudo apt-get install zsh
Go to ZSH by
"%SYSTEMROOT%\System32\bash.exe" -c zsh
(I use ConEmu)Put any command to background with
&
. It seems that the command is properly executed, but an annoying error message also shows.Other post had also reported this problem for specific programs, but I found the problem is actually generic for any command.
Both of the two issues are on WSL too.
I used WSL+ZSH in 14393 anniversary update as well, and it worked well without any problem. Hence I don't think this is an issue of ZSH, but perhaps WSL itself has changed something afterward.
EDIT: wting/autojump#474 said the following:
No error message.
zsh: nice(5) failed: operation not permitted
Creators Update(15063.138),
https://pastebin.com/B25G4tWb
The text was updated successfully, but these errors were encountered: