]> 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 12:05:18 +0000 (05:05 -0700)
committerGitHub <noreply@github.com>
Thu, 13 Oct 2022 12:05:18 +0000 (05:05 -0700)
commitc7662420d62e04eefd99d7cdbcc74f72e68f3a6a
treea4e1a6f318ef9bb2a918dcce6936df76734a334e
parenta0c11529f32cae213795f3e160808cccd2752e38
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