commit | e61f1ec89de8eb5bb0f8b1e6a79594f0bff2a259 | [log] [tgz] |
---|---|---|
author | Bruce Cran <bruce@cran.org.uk> | Fri Jan 14 18:30:26 2011 +0100 |
committer | Jens Axboe <jaxboe@fusionio.com> | Fri Jan 14 18:30:26 2011 +0100 |
tree | bd897dd818769b2ac4544606217a1656b816989e | |
parent | 69204d6e8830464bc98fcc28ca91412d6d360775 [diff] [blame] |
Print error if max number of jobs is exceeded Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
diff --git a/init.c b/init.c index f3085bc..c51956e 100644 --- a/init.c +++ b/init.c
@@ -158,8 +158,11 @@ 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;