diff options
-rw-r--r-- | source/kit/threads.posix.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |