From ddea327767d9280debfb5ae6671939d691040d2d Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Tue, 22 Feb 2011 16:16:30 +0100 Subject: [PATCH] Make ionice $command work ionice $command would previously report: ionice: cannot parse number '$command' This has been fixed so that it now tries to run the command under the default I/O priority as per the man page. Addresses: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=563904 Signed-off-by: Tollef Fog Heen --- schedutils/ionice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schedutils/ionice.c b/schedutils/ionice.c index a57cf7f2..fd299b87 100644 --- a/schedutils/ionice.c +++ b/schedutils/ionice.c @@ -163,7 +163,7 @@ int main(int argc, char *argv[]) errx(EXIT_FAILURE, _("bad prio class %d"), ioclass); } - if (!set) { + if (!set && pid) { ioprio_print(pid); for(; argv[optind]; ++optind) { -- 2.39.5