summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ot_accesslist.c11
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