diff options
author | Furkan Onder <furkanonder@protonmail.com> | 2025-04-13 11:06:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-13 11:06:38 (GMT) |
commit | c7f6535e4a3b447fbd67bf98eea82fd243e780be (patch) | |
tree | d4018c5375cc156fe73beb6ad77155311458347e /Python/ceval.c | |
parent | 00cf5eacc52d4790c23a24c835fb6b048cb27d8c (diff) | |
download | cpython-c7f6535e4a3b447fbd67bf98eea82fd243e780be.zip cpython-c7f6535e4a3b447fbd67bf98eea82fd243e780be.tar.gz cpython-c7f6535e4a3b447fbd67bf98eea82fd243e780be.tar.bz2 |
gh-131624: Fix posix_spawn tests failing on NetBSD with stack limit assertions (GH-131625)
Fix recursive limit assertions on NetBSD for posix_spawn.
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index e4a63ad..278d9e3 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -437,7 +437,7 @@ _Py_InitializeRecursionLimits(PyThreadState *tstate) _tstate->c_stack_soft_limit = _tstate->c_stack_hard_limit + PYOS_STACK_MARGIN_BYTES; #else uintptr_t here_addr = _Py_get_machine_stack_pointer(); -# if defined(HAVE_PTHREAD_GETATTR_NP) && !defined(_AIX) +# if defined(HAVE_PTHREAD_GETATTR_NP) && !defined(_AIX) && !defined(__NetBSD__) size_t stack_size, guard_size; void *stack_addr; pthread_attr_t attr; |