projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Print error if max number of jobs is exceeded
[fio.git]
/
init.c
diff --git
a/init.c
b/init.c
index f3085bcd57f0d4e754e8cfca0d7da8a311937a38..c51956e53c0d37d32b7236f9ffe6af902b2684e8 100644
(file)
--- 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 (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;
return NULL;
+ }
td = &threads[thread_number++];
*td = *parent;
td = &threads[thread_number++];
*td = *parent;