]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35823: subprocess: Fix handling of pthread_sigmask() errors (GH-22944)
authorAlexey Izbyshev <izbyshev@ispras.ru>
Sat, 24 Oct 2020 17:47:38 +0000 (20:47 +0300)
committerGitHub <noreply@github.com>
Sat, 24 Oct 2020 17:47:38 +0000 (10:47 -0700)
commit473db47747bb8bc986d88ad81799bcbd88153ac5
tree5db1f6a73c60f506944081915d92082de9f35265
parente01e442125bbc98e6dab66f38ecc6c45f69e6587
bpo-35823: subprocess: Fix handling of pthread_sigmask() errors (GH-22944)

Using POSIX_CALL() is incorrect since pthread_sigmask() returns
the error number instead of setting errno.

Also handle failure of the first call to pthread_sigmask()
in the parent process, and explain why we don't handle failure
of the second call in a comment.
Modules/_posixsubprocess.c