jobd: fix an invocation of error to use ferror
authorJan Krüger <jk@jk.gs>
Wed, 24 Nov 2010 19:23:26 +0000 (24 20:23 +0100)
committerKyle J. McKay <mackyle@gmail.com>
Fri, 31 May 2013 11:37:01 +0000 (31 04:37 -0700)
One invocation that should have used ferror() due to using a format
string used error() instead. Fix that.

Signed-off-by: Jan Krüger <jk@jk.gs>
jobd/jobd.pl

index 98f5882..9b8b748 100755 (executable)
@@ -261,7 +261,7 @@ sub run_queue {
        $jobs_skipped = 0;
        @jobs_killed = ();
        if ($progress) {
-               error("--- Processing %d queued jobs", scalar(@queue));
+               ferror("--- Processing %d queued jobs", scalar(@queue));
        }
        $SIG{'INT'} = \&handle_softexit;
        $SIG{'TERM'} = \&handle_exit;