]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.15] gh-148665: Enable socket.shutdown function for emscripten (GH-148666) (#154319)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 21 Jul 2026 01:05:04 +0000 (03:05 +0200)
committerGitHub <noreply@github.com>
Tue, 21 Jul 2026 01:05:04 +0000 (01:05 +0000)
Re-enable the autoconf check for socket.shutdown on Emscripten, as some
Emscripten environments are able to provide this call.
(cherry picked from commit 20b7e8e50b9a4a92989b36531429f9b51ee0a0bf)

Co-authored-by: Gyeongjae Choi <gyeongjae@cloudflare.com>
Misc/NEWS.d/next/Library/2026-04-17-05-58-27.gh-issue-148665.AlUajE.rst [new file with mode: 0644]
Platforms/emscripten/config.site-wasm32-emscripten

diff --git a/Misc/NEWS.d/next/Library/2026-04-17-05-58-27.gh-issue-148665.AlUajE.rst b/Misc/NEWS.d/next/Library/2026-04-17-05-58-27.gh-issue-148665.AlUajE.rst
new file mode 100644 (file)
index 0000000..db7736f
--- /dev/null
@@ -0,0 +1 @@
+socket.shutdown function is now enabled for Emscripten builds. However, if the runtime does not implement the shutdown syscall, it will show "Function not implemented" error.
index f69dbb8e779a42685f87299f92ce8fc8e0f8665b..3c9a1c2c2568b0edba4998d0e43c4da747e5e253 100644 (file)
@@ -21,9 +21,6 @@ ac_cv_func_eventfd=no
 ac_cv_func_memfd_create=no
 ac_cv_func_prlimit=no
 
-# unsupported syscall, https://github.com/emscripten-core/emscripten/issues/13393
-ac_cv_func_shutdown=no
-
 # The rest is based on pyodide
 # https://github.com/pyodide/pyodide/blob/main/cpython/pyconfig.undefs.h