From c8bb6faf52ea8079e98df17cd2c5a029d3f33057 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 12 Mar 2007 11:03:04 +0100 Subject: [PATCH 1/1] Quit on thread creation failure Signed-off-by: Jens Axboe --- fio.c | 1 + 1 file changed, 1 insertion(+) 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()) { -- 2.25.1