diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-08 22:16:23 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-08 22:16:23 +0100 |
| commit | 6b66414ba0d5212ca4d29f29216df6d649cf9fe9 (patch) | |
| tree | b805ee9b2c4cca7822a0a413715da68f379c02a7 | |
| parent | 34a8189a00c1eb3d76d62d4ba188d9785538222d (diff) | |
Panic when not able to start the accesslist workers.
| -rw-r--r-- | src/ot_accesslist.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/ot_accesslist.c b/src/ot_accesslist.c index 487597e..fdf631e 100644 --- a/src/ot_accesslist.c +++ b/src/ot_accesslist.c | |||
| @@ -413,12 +413,13 @@ void accesslist_init(void) { | |||
| 413 | /* Everything that consults the list starts after this returns */ | 413 | /* Everything that consults the list starts after this returns */ |
| 414 | accesslist_readfile(); | 414 | accesslist_readfile(); |
| 415 | 415 | ||
| 416 | pthread_create(&thread_id, NULL, accesslist_worker, NULL); | 416 | if (pthread_create(&thread_id, NULL, accesslist_worker, NULL)) |
| 417 | exerr("Cannot create accesslist worker thread."); | ||
| 417 | #ifdef WANT_DYNAMIC_ACCESSLIST | 418 | #ifdef WANT_DYNAMIC_ACCESSLIST |
| 418 | if (g_accesslist_pipe_add) | 419 | if (g_accesslist_pipe_add && pthread_create(&thread_adder_id, NULL, accesslist_adder_worker, NULL)) |
| 419 | pthread_create(&thread_adder_id, NULL, accesslist_adder_worker, NULL); | 420 | exerr("Cannot create accesslist adder thread."); |
| 420 | if (g_accesslist_pipe_delete) | 421 | if (g_accesslist_pipe_delete && pthread_create(&thread_deleter_id, NULL, accesslist_deleter_worker, NULL)) |
| 421 | pthread_create(&thread_deleter_id, NULL, accesslist_deleter_worker, NULL); | 422 | exerr("Cannot create accesslist deleter thread."); |
| 422 | #endif | 423 | #endif |
| 423 | } | 424 | } |
| 424 | 425 | ||
