This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
integrate cfgperl change#6217 into mainline
[perl5.git] / win32 / perllib.c
index 857aada..fae3346 100644 (file)
@@ -338,6 +338,10 @@ RunPerl(int argc, char **argv, char **env)
 EXTERN_C void
 set_w32_module_name(void);
 
+EXTERN_C void
+EndSockets(void);
+
+
 #ifdef __MINGW32__
 EXTERN_C               /* GCC in C++ mode mangles the name, otherwise */
 #endif
@@ -367,6 +371,7 @@ DllMain(HANDLE hModule,             /* DLL module handle */
         * process termination or call to FreeLibrary.
         */
     case DLL_PROCESS_DETACH:
+       EndSockets();
        break;
 
        /* The attached process creates a new thread. */