diff options
Diffstat (limited to 'src/daemon/daemontest_put.c')
-rw-r--r-- | src/daemon/daemontest_put.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/daemon/daemontest_put.c b/src/daemon/daemontest_put.c index 17a2f1c4..7c047887 100644 --- a/src/daemon/daemontest_put.c +++ b/src/daemon/daemontest_put.c | |||
@@ -117,6 +117,7 @@ testInternalPut () | |||
117 | struct CBC cbc; | 117 | struct CBC cbc; |
118 | unsigned int pos = 0; | 118 | unsigned int pos = 0; |
119 | int done_flag = 0; | 119 | int done_flag = 0; |
120 | CURLcode errornum; | ||
120 | 121 | ||
121 | cbc.buf = buf; | 122 | cbc.buf = buf; |
122 | cbc.size = 2048; | 123 | cbc.size = 2048; |
@@ -145,8 +146,11 @@ testInternalPut () | |||
145 | // setting NOSIGNAL results in really weird | 146 | // setting NOSIGNAL results in really weird |
146 | // crashes on my system! | 147 | // crashes on my system! |
147 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 148 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
148 | if (CURLE_OK != curl_easy_perform (c)) | 149 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
149 | { | 150 | { |
151 | fprintf(stderr, | ||
152 | "curl_easy_perform failed: `%s'\n", | ||
153 | curl_easy_strerror(errornum)); | ||
150 | curl_easy_cleanup (c); | 154 | curl_easy_cleanup (c); |
151 | MHD_stop_daemon (d); | 155 | MHD_stop_daemon (d); |
152 | return 2; | 156 | return 2; |
@@ -177,6 +181,7 @@ testMultithreadedPut () | |||
177 | struct CBC cbc; | 181 | struct CBC cbc; |
178 | unsigned int pos = 0; | 182 | unsigned int pos = 0; |
179 | int done_flag = 0; | 183 | int done_flag = 0; |
184 | CURLcode errornum; | ||
180 | 185 | ||
181 | cbc.buf = buf; | 186 | cbc.buf = buf; |
182 | cbc.size = 2048; | 187 | cbc.size = 2048; |
@@ -205,8 +210,11 @@ testMultithreadedPut () | |||
205 | // setting NOSIGNAL results in really weird | 210 | // setting NOSIGNAL results in really weird |
206 | // crashes on my system! | 211 | // crashes on my system! |
207 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 212 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
208 | if (CURLE_OK != curl_easy_perform (c)) | 213 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
209 | { | 214 | { |
215 | fprintf(stderr, | ||
216 | "curl_easy_perform failed: `%s'\n", | ||
217 | curl_easy_strerror(errornum)); | ||
210 | curl_easy_cleanup (c); | 218 | curl_easy_cleanup (c); |
211 | MHD_stop_daemon (d); | 219 | MHD_stop_daemon (d); |
212 | return 32; | 220 | return 32; |