summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/include/pthread.h
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2006-05-30 19:13:04 +0000
committerotto <otto@openbsd.org>2006-05-30 19:13:04 +0000
commit19fa740100db5ca0be2ef5555071e7f839bc523b (patch)
treecaf8994bbedcf30e3bf5d4dc9c588d11cb80b380 /lib/libpthread/include/pthread.h
parentAvoid stack oflow on bad data. PR 5132. Backport from binutils main (diff)
downloadwireguard-openbsd-19fa740100db5ca0be2ef5555071e7f839bc523b.tar.xz
wireguard-openbsd-19fa740100db5ca0be2ef5555071e7f839bc523b.zip
Bump minimum stack size; current setting causes hangs or illegal
instructions once every few runs. Problem noted by Botond Botyanszki. ok marc@
Diffstat (limited to 'lib/libpthread/include/pthread.h')
-rw-r--r--lib/libpthread/include/pthread.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpthread/include/pthread.h b/lib/libpthread/include/pthread.h
index 6320c6dea86..ab8b4849619 100644
--- a/lib/libpthread/include/pthread.h
+++ b/lib/libpthread/include/pthread.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pthread.h,v 1.25 2005/10/31 20:48:30 brad Exp $ */
+/* $OpenBSD: pthread.h,v 1.26 2006/05/30 19:13:04 otto Exp $ */
/*
* Copyright (c) 1993, 1994 by Chris Provenzano, proven@mit.edu
@@ -57,7 +57,7 @@
*/
#define PTHREAD_DESTRUCTOR_ITERATIONS 4
#define PTHREAD_KEYS_MAX 256
-#define PTHREAD_STACK_MIN 1024
+#define PTHREAD_STACK_MIN 2048
#define PTHREAD_THREADS_MAX ULONG_MAX
/*