From cdef2868a8d3b61ca1a4027aa925f6df0047dd93 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov <0x7fffff@guattari.ru> Date: Thu, 18 Aug 2022 18:39:43 +0400 Subject: tets --- source/kit/threads.posix.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/kit/threads.posix.c b/source/kit/threads.posix.c index 0cd7b7d..c42c67e 100644 --- a/source/kit/threads.posix.c +++ b/source/kit/threads.posix.c @@ -251,6 +251,9 @@ int thrd_create_with_stack(thrd_t *thr, thrd_start_t func, void *arg, if (pthread_attr_init(&attr) != 0) return thrd_nomem; if (pthread_attr_setstacksize(&attr, (size_t) stack_size) != 0) { + printf("pthread_attr_setstacksize failed.\n"); + printf(" page size %d\n", (int) page_size); + printf(" stack size %d\n", (int) stack_size); return thrd_wrong_stack_size; } attr_p = &attr; -- cgit v1.2.3