diff options
Diffstat (limited to 'src/daemon/daemontest_post.c')
-rw-r--r-- | src/daemon/daemontest_post.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/daemon/daemontest_post.c b/src/daemon/daemontest_post.c index 19c79556..eed25e1d 100644 --- a/src/daemon/daemontest_post.c +++ b/src/daemon/daemontest_post.c | |||
@@ -105,6 +105,7 @@ testInternalPost () | |||
105 | CURL *c; | 105 | CURL *c; |
106 | char buf[2048]; | 106 | char buf[2048]; |
107 | struct CBC cbc; | 107 | struct CBC cbc; |
108 | CURLcode errornum; | ||
108 | 109 | ||
109 | cbc.buf = buf; | 110 | cbc.buf = buf; |
110 | cbc.size = 2048; | 111 | cbc.size = 2048; |
@@ -131,8 +132,11 @@ testInternalPost () | |||
131 | // setting NOSIGNAL results in really weird | 132 | // setting NOSIGNAL results in really weird |
132 | // crashes on my system! | 133 | // crashes on my system! |
133 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 134 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
134 | if (CURLE_OK != curl_easy_perform (c)) | 135 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
135 | { | 136 | { |
137 | fprintf(stderr, | ||
138 | "curl_easy_perform failed: `%s'\n", | ||
139 | curl_easy_strerror(errornum)); | ||
136 | curl_easy_cleanup (c); | 140 | curl_easy_cleanup (c); |
137 | MHD_stop_daemon (d); | 141 | MHD_stop_daemon (d); |
138 | return 2; | 142 | return 2; |
@@ -161,6 +165,7 @@ testMultithreadedPost () | |||
161 | CURL *c; | 165 | CURL *c; |
162 | char buf[2048]; | 166 | char buf[2048]; |
163 | struct CBC cbc; | 167 | struct CBC cbc; |
168 | CURLcode errornum; | ||
164 | 169 | ||
165 | cbc.buf = buf; | 170 | cbc.buf = buf; |
166 | cbc.size = 2048; | 171 | cbc.size = 2048; |
@@ -187,8 +192,11 @@ testMultithreadedPost () | |||
187 | // setting NOSIGNAL results in really weird | 192 | // setting NOSIGNAL results in really weird |
188 | // crashes on my system! | 193 | // crashes on my system! |
189 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 194 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
190 | if (CURLE_OK != curl_easy_perform (c)) | 195 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
191 | { | 196 | { |
197 | fprintf(stderr, | ||
198 | "curl_easy_perform failed: `%s'\n", | ||
199 | curl_easy_strerror(errornum)); | ||
192 | curl_easy_cleanup (c); | 200 | curl_easy_cleanup (c); |
193 | MHD_stop_daemon (d); | 201 | MHD_stop_daemon (d); |
194 | return 32; | 202 | return 32; |