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 <tfheen@err.no>
errx(EXIT_FAILURE, _("bad prio class %d"), ioclass);
}
- if (!set) {
+ if (!set && pid) {
ioprio_print(pid);
for(; argv[optind]; ++optind) {