Commit 25180cc8 authored by Gisle Vanem's avatar Gisle Vanem
Browse files

Removed copying 'stderr' since it doesn't have the desired

effect.
parent 2a0e41ca
Loading
Loading
Loading
Loading
+0 −15
Original line number Diff line number Diff line
@@ -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,