From e61f1ec89de8eb5bb0f8b1e6a79594f0bff2a259 Mon Sep 17 00:00:00 2001 From: Bruce Cran Date: Fri, 14 Jan 2011 18:30:26 +0100 Subject: [PATCH] Print error if max number of jobs is exceeded Signed-off-by: Jens Axboe --- init.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/init.c b/init.c index f3085bcd..c51956e5 100644 --- a/init.c +++ b/init.c @@ -158,8 +158,11 @@ static struct thread_data *get_new_job(int global, struct thread_data *parent) if (global) return &def_thread; - if (thread_number >= max_jobs) + if (thread_number >= max_jobs) { + log_err("error: maximum number of jobs (%d) reached.\n", + max_jobs); return NULL; + } td = &threads[thread_number++]; *td = *parent; -- 2.25.1