aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/daemontest_get.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/daemontest_get.c')
-rw-r--r--src/daemon/daemontest_get.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/daemon/daemontest_get.c b/src/daemon/daemontest_get.c
index c144d368..daea7a39 100644
--- a/src/daemon/daemontest_get.c
+++ b/src/daemon/daemontest_get.c
@@ -86,6 +86,7 @@ testInternalGet ()
86 CURL *c; 86 CURL *c;
87 char buf[2048]; 87 char buf[2048];
88 struct CBC cbc; 88 struct CBC cbc;
89 CURLcode errornum;
89 90
90 cbc.buf = buf; 91 cbc.buf = buf;
91 cbc.size = 2048; 92 cbc.size = 2048;
@@ -109,8 +110,11 @@ testInternalGet ()
109 // setting NOSIGNAL results in really weird 110 // setting NOSIGNAL results in really weird
110 // crashes on my system! 111 // crashes on my system!
111 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); 112 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1);
112 if (CURLE_OK != curl_easy_perform (c)) 113 if (CURLE_OK != (errornum = curl_easy_perform (c)))
113 { 114 {
115 fprintf(stderr,
116 "curl_easy_perform failed: `%s'\n",
117 curl_easy_strerror(errornum));
114 curl_easy_cleanup (c); 118 curl_easy_cleanup (c);
115 MHD_stop_daemon (d); 119 MHD_stop_daemon (d);
116 return 2; 120 return 2;
@@ -139,6 +143,7 @@ testMultithreadedGet ()
139 CURL *c; 143 CURL *c;
140 char buf[2048]; 144 char buf[2048];
141 struct CBC cbc; 145 struct CBC cbc;
146 CURLcode errornum;
142 147
143 cbc.buf = buf; 148 cbc.buf = buf;
144 cbc.size = 2048; 149 cbc.size = 2048;
@@ -162,8 +167,12 @@ testMultithreadedGet ()
162 // setting NOSIGNAL results in really weird 167 // setting NOSIGNAL results in really weird
163 // crashes on my system! 168 // crashes on my system!
164 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); 169 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1);
165 if (CURLE_OK != curl_easy_perform (c)) 170 if (CURLE_OK != (errornum = curl_easy_perform (c)))
166 { 171 {
172 fprintf(stderr,
173 "curl_easy_perform failed: `%s'\n",
174 curl_easy_strerror(errornum));
175 curl_easy_cleanup (c);
167 MHD_stop_daemon (d); 176 MHD_stop_daemon (d);
168 return 32; 177 return 32;
169 } 178 }