From d437963452674faadfd45adcd62466272b5a2fcd Mon Sep 17 00:00:00 2001 From: bol-van Date: Fri, 18 Sep 2026 13:18:49 +0300 Subject: [PATCH] tpws: remove set resolver stack size on macos --- tpws/resolver.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tpws/resolver.c b/tpws/resolver.c index 1653756e..28726040 100644 --- a/tpws/resolver.c +++ b/tpws/resolver.c @@ -219,6 +219,8 @@ bool resolver_init(int threads, int fd_signal_pipe) pthread_attr_t attr; if (pthread_attr_init(&attr)) goto ex; +#ifndef __APPLE__ + // somebody reported stack size crashes on macos // set minimum thread stack size if (pthread_attr_setstacksize(&attr,PTHREAD_STACK_MIN>32768 ? PTHREAD_STACK_MIN : 32768)) @@ -226,6 +228,7 @@ bool resolver_init(int threads, int fd_signal_pipe) pthread_attr_destroy(&attr); goto ex; } +#endif for(t=0, resolver.threads=threads ; t