From 1829ce1647b6fd5d9a9e320e7c6e3a0cf7095bbd Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Sun, 8 Nov 2026 20:05:02 +0100 Subject: panic when we can't install essential worker threads --- src/ot_fullscrape.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ot_fullscrape.c') diff --git a/src/ot_fullscrape.c b/src/ot_fullscrape.c index 787b508..bbceb0b 100644 --- a/src/ot_fullscrape.c +++ b/src/ot_fullscrape.c @@ -72,7 +72,8 @@ static void *fullscrape_worker(void *args) { static pthread_t thread_id; void fullscrape_init(void) { - pthread_create( &thread_id, NULL, fullscrape_worker, NULL ); + if (pthread_create(&thread_id, NULL, fullscrape_worker, NULL)) + exerr("Cannot create fullscrape worker thread."); } void fullscrape_deinit(void) { -- cgit v1.3