summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorMitya Selivanov <0x7fffff@guattari.ru>2022-08-18 18:39:43 +0400
committerMitya Selivanov <0x7fffff@guattari.ru>2022-08-18 18:39:43 +0400
commitcdef2868a8d3b61ca1a4027aa925f6df0047dd93 (patch)
treede1ccff0bf5b7229a5c226d9b30d25766f08f8db /source
parenta9bd7a873e608d7cf991384c29afaa3c48c577cc (diff)
downloadkit-cdef2868a8d3b61ca1a4027aa925f6df0047dd93.zip
tets
Diffstat (limited to 'source')
-rw-r--r--source/kit/threads.posix.c3
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;