diff options
author | ferrieux <ferrieux@users.sourceforge.net> | 2009-04-27 22:10:28 (GMT) |
---|---|---|
committer | ferrieux <ferrieux@users.sourceforge.net> | 2009-04-27 22:10:28 (GMT) |
commit | 666fdc0ebe369af75ba4858c4822426f1f0eb48d (patch) | |
tree | 1b8ee5775fa5066b3ebec1a4612f2d15ef65118e /win | |
parent | 6f574c6fa9dc0713fbf6f7292b5b4261378243de (diff) | |
download | tcl-666fdc0ebe369af75ba4858c4822426f1f0eb48d.zip tcl-666fdc0ebe369af75ba4858c4822426f1f0eb48d.tar.gz tcl-666fdc0ebe369af75ba4858c4822426f1f0eb48d.tar.bz2 |
Backport fix for [Bug 1028264]: WSACleanup() too early. The fix introduces "late exit handlers" for similar late process-wide cleanups.
Diffstat (limited to 'win')
-rw-r--r-- | win/tclWinSock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tclWinSock.c b/win/tclWinSock.c index 1053d4d..329b57f 100644 --- a/win/tclWinSock.c +++ b/win/tclWinSock.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclWinSock.c,v 1.36.2.9 2009/04/27 21:25:18 ferrieux Exp $ + * RCS: @(#) $Id: tclWinSock.c,v 1.36.2.10 2009/04/27 22:10:28 ferrieux Exp $ */ #include "tclWinInt.h" @@ -326,7 +326,7 @@ InitSockets() if (!initialized) { initialized = 1; - Tcl_CreateExitHandler(SocketExitHandler, (ClientData) NULL); + TclCreateLateExitHandler(SocketExitHandler, (ClientData) NULL); winSock.hModule = LoadLibraryA("wsock32.dll"); |