From 5835f2cf8dfb01b93c233bfb5e486482a545aded Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 31 Aug 2001 05:06:14 +0000 Subject: * cygwin.sc: New file -- linker script for building cygwin DLL. * Makefile.in: Use linker script to control location of cygheap. * cygheap.cc (buckets): Make static. (init_cheap): Remove special iswinnt handling. Allocate cygheap at a fixed location. Display more info when allocation fails. (cygheap_fixup_in_child): Try harder to move cygheap to correct location. Display more info when allocation fails. * fhandler.h (fhandler_socket): Add macros for tracking socket shutdown state. * net.cc (cygwin_shutdown): Set appropriate shutdown value for future use. * select.cc (select_stuff::cleanup): New method. (cygwin_select): Call cleanup explicitly to avoid a race. (select_stuff:~select_stuff): Call cleanup chain via cleanup method. (fhandler_socket::select_read): Set *_ready when shutdown has been called on the socket. (fhandler_socket::select_write): Ditto. (fhandler_socket::select_except): Ditto. * winsup.h: Move NO_COPY to "COMMON" section. * autoload.cc (wsock_started): Avoid initializing NO_COPY value. * sigproc.cc: Remove initialization from NO_COPY variables. (sigproc_init): Initialize sig_loop_wait here, rather than via initialization. (subproc_init): Initialize proc_loop_wait here, rather than via initialization. --- winsup/cygwin/autoload.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/autoload.cc') diff --git a/winsup/cygwin/autoload.cc b/winsup/cygwin/autoload.cc index 1cd0e7e12..336c4cb85 100644 --- a/winsup/cygwin/autoload.cc +++ b/winsup/cygwin/autoload.cc @@ -236,7 +236,7 @@ std_dll_init () /* Initialization function for winsock stuff. */ static long long wsock_init () __asm__ ("wsock_init") __attribute__ ((unused, regparm(1))); -bool NO_COPY wsock_started = 0; +bool NO_COPY wsock_started; static long long wsock_init () { -- cgit v1.2.3