mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
8cc26e8d9d
a heavy c++ application, so that default FreeBSD pthread stack size of 64KB is not sufficient in many cases. Be wise and set the pthread stack size to be 1MB instead. Bump PORTREVISION. Sponsored by: Porta Software Ltd
19 lines
523 B
C++
19 lines
523 B
C++
|
|
$FreeBSD$
|
|
|
|
--- util/threads/vthread-linux.cxx 2003/01/31 09:50:14 1.1
|
|
+++ util/threads/vthread-linux.cxx 2003/01/31 09:52:19
|
|
@@ -191,6 +191,12 @@
|
|
pthread_attr_setscope(&myAttributes, PTHREAD_SCOPE_SYSTEM);
|
|
#endif
|
|
|
|
+#if defined (__FreeBSD__)
|
|
+ // Default FreeBSD thread stack size (64KB) is not sufficient for the
|
|
+ // b2bua bloatware
|
|
+ pthread_attr_setstacksize (&myAttributes, 1024*1024);
|
|
+#endif
|
|
+
|
|
// spawn the thread
|
|
return ( pthread_create( &myId, &myAttributes, startFunc, startArgs ) );
|
|
}
|