aboutsummaryrefslogtreecommitdiff
path: root/lib/hostthre.c
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2006-07-07 07:41:47 +0000
committerGisle Vanem <gvanem@broadpark.no>2006-07-07 07:41:47 +0000
commit25180cc8501d32f9ab21fdb78ad8910dc40c275a (patch)
tree7aea28f1883ee43808d79b1b4d01ac0e2e720ab6 /lib/hostthre.c
parent2a0e41cab91af5b390b16d76887ad80a00a9176e (diff)
Removed copying 'stderr' since it doesn't have the desired
effect.
Diffstat (limited to 'lib/hostthre.c')
-rw-r--r--lib/hostthre.c15
1 files changed, 0 insertions, 15 deletions
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,