Removed copying 'stderr' since it doesn't have the desired
authorGisle Vanem <gvanem@broadpark.no>
Fri, 7 Jul 2006 07:41:47 +0000 (07:41 +0000)
committerGisle Vanem <gvanem@broadpark.no>
Fri, 7 Jul 2006 07:41:47 +0000 (07:41 +0000)
effect.

lib/hostthre.c

index 504af41..4fb172c 100644 (file)
@@ -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,