diff options
Diffstat (limited to 'src/plugins/hs_apps/vcl/vcl_test_client.c')
-rw-r--r-- | src/plugins/hs_apps/vcl/vcl_test_client.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/plugins/hs_apps/vcl/vcl_test_client.c b/src/plugins/hs_apps/vcl/vcl_test_client.c index ae05961e655..1962e810fce 100644 --- a/src/plugins/hs_apps/vcl/vcl_test_client.c +++ b/src/plugins/hs_apps/vcl/vcl_test_client.c @@ -821,8 +821,12 @@ vtc_stream_client (vcl_test_client_main_t * vcm) for (i = 1; i < vcm->n_workers; i++) { wrk = &vcm->workers[i]; - pthread_create (&wrk->thread_handle, NULL, vtc_worker_loop, - (void *) wrk); + if (pthread_create (&wrk->thread_handle, NULL, vtc_worker_loop, + (void *) wrk)) + { + vtwrn ("pthread_create failed -- aborting!"); + return; + } } vtc_worker_loop (&vcm->workers[0]); |