[Python-checkins] python/dist/src/Modules socketmodule.c,1.269,1.270
mhammond@users.sourceforge.net
mhammond@users.sourceforge.net
Tue, 08 Jul 2003 21:57:48 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv27314
Modified Files:
socketmodule.c
Log Message:
Fix [ 766669 ] Consistent GPF on exit
Use Py_AtExit instead of atexit so we are called during Py_Finalize()
rather than during DLL teardown.
Index: socketmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/socketmodule.c,v
retrieving revision 1.269
retrieving revision 1.270
diff -C2 -d -r1.269 -r1.270
*** socketmodule.c 29 Jun 2003 03:08:05 -0000 1.269
--- socketmodule.c 9 Jul 2003 04:57:46 -0000 1.270
***************
*** 3359,3363 ****
switch (ret) {
case 0: /* No error */
! atexit(os_cleanup);
return 1; /* Success */
case WSASYSNOTREADY:
--- 3359,3363 ----
switch (ret) {
case 0: /* No error */
! Py_AtExit(os_cleanup);
return 1; /* Success */
case WSASYSNOTREADY: