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_clean.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ot_clean.c') diff --git a/src/ot_clean.c b/src/ot_clean.c index 130bd2a..8eb1da2 100644 --- a/src/ot_clean.c +++ b/src/ot_clean.c @@ -193,7 +193,8 @@ static pthread_t thread_id; void clean_init(void) { if (pipe(g_clean_pipe) == -1) fprintf(stderr, "Warning: the cleaner has no pipe to be woken through and will take up to one sleep interval to stop.\n"); - pthread_create(&thread_id, NULL, clean_worker, NULL); + if (pthread_create(&thread_id, NULL, clean_worker, NULL)) + exerr("Cannot create cleanup worker thread."); } void clean_deinit(void) { -- cgit v1.3