Separate the act of adding and starting a job
[fio.git] / fio.c
diff --git a/fio.c b/fio.c
index d628cfcd885d05958d477310661f41f5254446ac..9a6c31a65d912ba39a44f2cae1ce9ec8378146a6 100644 (file)
--- a/fio.c
+++ b/fio.c
@@ -45,8 +45,10 @@ int main(int argc, char *argv[], char *envp[])
        if (parse_options(argc, argv))
                return 1;
 
-       if (nr_clients)
+       if (nr_clients) {
+               if (fio_start_all_clients())
+                       return 1;
                return fio_handle_clients(&fio_client_ops);
-       else
+       else
                return fio_backend();
 }