summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMark Hammond <mhammond@skippinet.com.au>2003-07-09 04:57:46 (GMT)
committerMark Hammond <mhammond@skippinet.com.au>2003-07-09 04:57:46 (GMT)
commit14350ab006fcf230b59ca253a13eacb2ef4c9cbf (patch)
treeeda505842063c8ea63a24bad0cca48a0f7109cb0 /Modules
parent455d46f0d921337405ebd3a098c210f3614ae77c (diff)
downloadcpython-14350ab006fcf230b59ca253a13eacb2ef4c9cbf.zip
cpython-14350ab006fcf230b59ca253a13eacb2ef4c9cbf.tar.gz
cpython-14350ab006fcf230b59ca253a13eacb2ef4c9cbf.tar.bz2
Fix [ 766669 ] Consistent GPF on exit
Use Py_AtExit instead of atexit so we are called during Py_Finalize() rather than during DLL teardown.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/socketmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index ecb6f1a..c21d599 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -3358,7 +3358,7 @@ os_init(void)
ret = WSAStartup(0x0101, &WSAData);
switch (ret) {
case 0: /* No error */
- atexit(os_cleanup);
+ Py_AtExit(os_cleanup);
return 1; /* Success */
case WSASYSNOTREADY:
PyErr_SetString(PyExc_ImportError,