]> git.ipfire.org Git - thirdparty/util-linux.git/commit
schedutils: don't apply -a without -p
authorDaniel Stodden <daniel.stodden@googlemail.com>
Mon, 25 Mar 2013 09:33:59 +0000 (02:33 -0700)
committerKarel Zak <kzak@redhat.com>
Tue, 26 Mar 2013 11:37:55 +0000 (12:37 +0100)
commitd9b22d179a274013dd1eb29c7b9ab5225bfd7d70
tree90b38316ce51caae6f611f2ca00e69c1de12e72e
parent09e092ad5cb7fe835f16c9ba37138a1730541bba
schedutils: don't apply -a without -p

The unsuspecting user might use taskset -a mask command. Behavior then
is to exec with no affinity applied at all. Better handled by ignoring
all_tasks if no pid was given.

Signed-off-by: Daniel Stodden <daniel.stodden@gmail.com>
schedutils/taskset.c