ci: stop hard coding number of jobs for make
[fio.git] / workqueue.c
index 9e6c41ff2f399172703b6e438061236670962df8..3636bc3a8a60df765b582f8e4a889f8ef25b9769 100644 (file)
@@ -136,7 +136,8 @@ static void *worker_thread(void *data)
        sk_out_assign(sw->sk_out);
 
        if (wq->ops.nice) {
-               if (nice(wq->ops.nice) < 0) {
+               errno = 0;
+               if (nice(wq->ops.nice) == -1 && errno != 0) {
                        log_err("workqueue: nice %s\n", strerror(errno));
                        ret = 1;
                }