https://github.com/python/cpython/commit/20b7e8e50b9a4a92989b36531429f9b51ee0a0bf
commit: 20b7e8e50b9a4a92989b36531429f9b51ee0a0bf
branch: main
author: Gyeongjae Choi <[email protected]>
committer: freakboy3742 <[email protected]>
date: 2026-07-21T08:46:48+08:00
summary:

gh-148665: Enable socket.shutdown function for emscripten (#148666)

Re-enable the autoconf check for socket.shutdown on Emscripten, as some 
Emscripten environments are able to provide this call.

files:
A Misc/NEWS.d/next/Library/2026-04-17-05-58-27.gh-issue-148665.AlUajE.rst
M 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
index 000000000000000..db7736f1ae6ef65
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2026-04-17-05-58-27.gh-issue-148665.AlUajE.rst
@@ -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.
diff --git a/Platforms/emscripten/config.site-wasm32-emscripten 
b/Platforms/emscripten/config.site-wasm32-emscripten
index f69dbb8e779a426..3c9a1c2c2568b0e 100644
--- a/Platforms/emscripten/config.site-wasm32-emscripten
+++ b/Platforms/emscripten/config.site-wasm32-emscripten
@@ -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
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to