Skip to content

Commit c7f6535

Browse files
authored
gh-131624: Fix posix_spawn tests failing on NetBSD with stack limit assertions (GH-131625)
Fix recursive limit assertions on NetBSD for posix_spawn.
1 parent 00cf5ea commit c7f6535

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Python/ceval.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ _Py_InitializeRecursionLimits(PyThreadState *tstate)
437437
_tstate->c_stack_soft_limit = _tstate->c_stack_hard_limit + PYOS_STACK_MARGIN_BYTES;
438438
#else
439439
uintptr_t here_addr = _Py_get_machine_stack_pointer();
440-
# if defined(HAVE_PTHREAD_GETATTR_NP) && !defined(_AIX)
440+
# if defined(HAVE_PTHREAD_GETATTR_NP) && !defined(_AIX) && !defined(__NetBSD__)
441441
size_t stack_size, guard_size;
442442
void *stack_addr;
443443
pthread_attr_t attr;

0 commit comments

Comments
 (0)