]> err.no Git - util-linux/commit
ionice: non-cryptic error message when ionice can't execvp
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Mon, 3 May 2010 18:24:26 +0000 (18:24 +0000)
committerKarel Zak <kzak@redhat.com>
Thu, 6 May 2010 07:18:20 +0000 (09:18 +0200)
commit048b81c9ffd2554900523ff55718ab8914176f77
tree1e23714c30b56efaa6057a6dec6d16178f3fe56b
parente2f092d334d53fb4538d93fdab60cb538d043547
ionice: non-cryptic error message when ionice can't execvp

Previously ionice would reply like this when it couldn't find the
command to execute:

    $ ionice -c 3 does-not-exist
    ionice: execvp failed: No such file or directory

Getting that message from cron because you haven't set the right $PATH
makes it hard to track down the problem. Now it says:

    $ ionice -c 3 does-not-exist
    ionice: executing does-not-exist failed: No such file or directory

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
schedutils/ionice.c