20 lines
711 B
Diff
20 lines
711 B
Diff
Index: util-linux-ng-2.14.2-rc2/schedutils/ionice.c
|
|
===================================================================
|
|
--- util-linux-ng-2.14.2-rc2.orig/schedutils/ionice.c 2009-01-22 12:32:48.000000000 +0100
|
|
+++ util-linux-ng-2.14.2-rc2/schedutils/ionice.c 2009-02-05 17:53:20.000000000 +0100
|
|
@@ -115,8 +115,12 @@ int main(int argc, char *argv[])
|
|
}
|
|
} else {
|
|
if (ioprio_set(IOPRIO_WHO_PROCESS, pid, ioprio | ioprio_class << IOPRIO_CLASS_SHIFT) == -1) {
|
|
- perror("ioprio_set");
|
|
- exit(EXIT_FAILURE);
|
|
+ if (errno == ENOSYS)
|
|
+ fprintf(stderr, "Warning: omitting unsupported ioprio_set() call\n");
|
|
+ else {
|
|
+ perror("ioprio_set");
|
|
+ exit(EXIT_FAILURE);
|
|
+ }
|
|
}
|
|
|
|
if (argv[optind]) {
|