]> git.ipfire.org Git - thirdparty/util-linux.git/commit
taskset: fix use of err_affinity()
authorcsbo98 <boliu98@foxmail.com>
Sun, 22 May 2022 06:47:13 +0000 (14:47 +0800)
committerKarel Zak <kzak@redhat.com>
Wed, 20 Jul 2022 15:44:20 +0000 (17:44 +0200)
commit3df6c8c1191f8efa0fd54802a90290cb639c25b7
treef0e81fabe3d13a365c19224de31074cae01534b7
parent9dbc073e4c58a56f68da8209df19789131446f5e
taskset: fix use of  err_affinity()

Maybe there is a little mistake in do_taskset() function in taskset.c.
In the first call of sched_getaffinity(), if the call is failed we should
use err_affinity(ts->pid, 0) other than err_affinity(ts->pid, 1).

Signed-off-by: Karel Zak <kzak@redhat.com>
schedutils/taskset.c