Help us understand the problem. What is going on with this article?

zshでバックグラウンドジョブを起動すると優先度が低くなる

More than 3 years have passed since last update.

最後に&を付けるとバックグラウンドジョブになることは皆さん知っているとは思いますが、実はbashとzshで微妙に動きが異なります。

zshでバックグラウンドジョブを動かした場合ioniceは標準の0より大きな5として実行されます。大きい方が優先度が低いので標準よりも低い優先度で実行されてしまいます。bashには特に優先度を変更しないのでこの挙動はbashとは異なります。

このzshの挙動が気に入らない場合は.zshrcに以下の設定を追加します。

unsetopt bg_nice

これでbashと同じ挙動になります。

参考:

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away