diff Modules/socketmodule.c @ 29790:1037feacb54f legacy-trunk

Fix [ 766669 ] Consistent GPF on exit Use Py_AtExit instead of atexit so we are called during Py_Finalize() rather than during DLL teardown.
author Mark Hammond <mhammond@skippinet.com.au>
date Wed, 09 Jul 2003 04:57:46 +0000
parents 0a3751df4195
children 08d2636b8e58
line wrap: on
line diff
--- a/Modules/socketmodule.c	Wed Jul 09 04:45:59 2003 +0000
+++ b/Modules/socketmodule.c	Wed Jul 09 04:57:46 2003 +0000
@@ -3358,7 +3358,7 @@
 	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,