Skip to content

Commit 48dad88

Browse files
committed
Fix recursive limit assertions on NetBSD for posix_spawn
1 parent 18249d9 commit 48dad88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/ceval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ _Py_InitializeRecursionLimits(PyThreadState *tstate)
444444
_tstate->c_stack_soft_limit = _tstate->c_stack_hard_limit + PYOS_STACK_MARGIN_BYTES;
445445
#else
446446
uintptr_t here_addr = _Py_get_machine_stack_pointer();
447-
# if defined(HAVE_PTHREAD_GETATTR_NP) && !defined(_AIX)
447+
# if defined(HAVE_PTHREAD_GETATTR_NP) && !defined(_AIX) && !defined(__NetBSD__)
448448
size_t stack_size, guard_size;
449449
void *stack_addr;
450450
pthread_attr_t attr;

0 commit comments

Comments
 (0)