diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2019-11-08 16:32:37 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2019-11-08 16:32:37 +0100 |
| commit | e5586605ca3dfa1e4ad2bb5ddea818777846dca2 (patch) | |
| tree | d569242db4ce7ed47f74eb79fc215aea36d677e1 /util-linux | |
| parent | 162ac7f45ed0ffdb2fdb2fc1871557523fd22d98 (diff) | |
| download | busybox-w32-e5586605ca3dfa1e4ad2bb5ddea818777846dca2.tar.gz busybox-w32-e5586605ca3dfa1e4ad2bb5ddea818777846dca2.tar.bz2 busybox-w32-e5586605ca3dfa1e4ad2bb5ddea818777846dca2.zip | |
taskset: update comment
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux')
| -rw-r--r-- | util-linux/taskset.c | 10 |
1 files 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) | |||
| 123 | * The list element can be either a CPU index or a range of CPU indices. | 123 | * The list element can be either a CPU index or a range of CPU indices. |
| 124 | * Example: "1,3,5-7". | 124 | * Example: "1,3,5-7". |
| 125 | * | 125 | * |
| 126 | * note1: pattern specifiers after a range (e.g. 0-255:2/64) are not supported | 126 | * note1: stride (e.g. 0-255:2) is not supported |
| 127 | * note2: leading/trailing white-spaces are not allowed | 127 | * note2: leading and trailing whitespace is not allowed |
| 128 | * util-linux 2.31 allows leading and sometimes trailing whitespace: | ||
| 129 | * ok: taskset -c ' 1, 2' | ||
| 130 | * ok: taskset -c ' 1 , 2' | ||
| 131 | * ok: taskset -c ' 1-7: 2 ,8' | ||
| 132 | * not ok: taskset -c ' 1 ' | ||
| 133 | * not ok: taskset -c ' 1-7: 2 ' | ||
| 128 | */ | 134 | */ |
| 129 | static void parse_cpulist(ul *mask, unsigned max, char *s) | 135 | static void parse_cpulist(ul *mask, unsigned max, char *s) |
| 130 | { | 136 | { |
