[git commit] taskset: update comment

Denys Vlasenko vda.linux at googlemail.com
Fri Nov 8 15:32:37 UTC 2019


commit: https://git.busybox.net/busybox/commit/?id=e5586605ca3dfa1e4ad2bb5ddea818777846dca2
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 util-linux/taskset.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/util-linux/taskset.c b/util-linux/taskset.c
index cebc20fea..157bf5e4c 100644
--- a/util-linux/taskset.c
+++ b/util-linux/taskset.c
@@ -123,8 +123,14 @@ static unsigned long *get_aff(int pid, unsigned *sz)
  * The list element can be either a CPU index or a range of CPU indices.
  * Example: "1,3,5-7".
  *
- * note1: pattern specifiers after a range (e.g. 0-255:2/64) are not supported
- * note2: leading/trailing white-spaces are not allowed
+ * note1: stride (e.g. 0-255:2) is not supported
+ * note2: leading and trailing whitespace is not allowed
+ *  util-linux 2.31 allows leading and sometimes trailing whitespace:
+ *  ok:     taskset -c ' 1,  2'
+ *  ok:     taskset -c ' 1 , 2'
+ *  ok:     taskset -c ' 1-7: 2 ,8'
+ *  not ok: taskset -c ' 1 '
+ *  not ok: taskset -c ' 1-7: 2 '
  */
 static void parse_cpulist(ul *mask, unsigned max, char *s)
 {


More information about the busybox-cvs mailing list