]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-98178: syslog() is not thread-safe on macOS (GH-98213)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 13 Oct 2022 11:59:23 +0000 (04:59 -0700)
committerGitHub <noreply@github.com>
Thu, 13 Oct 2022 11:59:23 +0000 (04:59 -0700)
commitc7761bbc3297539480d1e2799f7f67f0437c24b1
tree48c3a4081621350c05379c6f658e2f47aeccc0ed
parent0a67f82eb1daf0afaebc68f31ac7e4609f314353
gh-98178: syslog() is not thread-safe on macOS (GH-98213)

On macOS, fix a crash in syslog.syslog() in multi-threaded
applications. On macOS, the libc syslog() function is not
thread-safe, so syslog.syslog() no longer releases the GIL to call
it.
(cherry picked from commit d4b91663857e85eab1f309cacec4d27b5f6657ec)

Co-authored-by: Victor Stinner <vstinner@python.org>
Misc/NEWS.d/next/Library/2022-10-12-10-00-40.gh-issue-98178.hspH51.rst [new file with mode: 0644]
Modules/syslogmodule.c