From 25180cc8501d32f9ab21fdb78ad8910dc40c275a Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Fri, 7 Jul 2006 07:41:47 +0000 Subject: Removed copying 'stderr' since it doesn't have the desired effect. --- lib/hostthre.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'lib') diff --git a/lib/hostthre.c b/lib/hostthre.c index 504af41b6..4fb172c42 100644 --- a/lib/hostthre.c +++ b/lib/hostthre.c @@ -157,7 +157,6 @@ struct thread_data { unsigned thread_id; DWORD thread_status; curl_socket_t dummy_sock; /* dummy for Curl_resolv_fdset() */ - FILE *stderr_file; HANDLE mutex_waiting; /* marks that we are still waiting for a resolve */ HANDLE event_resolved; /* marks that the thread obtained the information */ HANDLE event_thread_started; /* marks that the thread has initialized and @@ -302,14 +301,6 @@ static unsigned __stdcall gethostbyname_thread (void *arg) return (unsigned)-1; } - /* Sharing the same _iob[] element with our parent thread should - * hopefully make printouts synchronised. I'm not sure it works - * with a static runtime lib (MSVC's libc.lib). - */ -#ifndef _WIN32_WCE - *stderr = *td->stderr_file; -#endif - WSASetLastError (conn->async.status = NO_DATA); /* pending status */ /* Signaling that we have initialized all copies of data and handles we @@ -369,10 +360,6 @@ static unsigned __stdcall getaddrinfo_thread (void *arg) return -1; } -#ifndef _WIN32_WCE - *stderr = *td->stderr_file; -#endif - itoa(conn->async.port, service, 10); WSASetLastError(conn->async.status = NO_DATA); /* pending status */ @@ -538,8 +525,6 @@ static bool init_resolve_thread (struct connectdata *conn, return FALSE; } - td->stderr_file = stderr; - #ifdef _WIN32_WCE td->thread_hnd = (HANDLE) CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE) THREAD_FUNC, -- cgit v1.2.3