From: Jens Axboe Date: Mon, 12 Mar 2007 10:03:04 +0000 (+0100) Subject: Quit on thread creation failure X-Git-Tag: fio-1.14~40 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=c8bb6faf52ea8079e98df17cd2c5a029d3f33057;hp=80be24f4671164d597463e4b5c794d4cbd0a4537 Quit on thread creation failure Signed-off-by: Jens Axboe --- diff --git a/fio.c b/fio.c index 509f8be4..b0afdcc8 100644 --- a/fio.c +++ b/fio.c @@ -1029,6 +1029,7 @@ static void run_threads(void) if (pthread_create(&td->thread, NULL, thread_main, td)) { perror("thread_create"); nr_started--; + break; } } else { if (!fork()) {