aboutsummaryrefslogtreecommitdiff
path: root/tests/server
diff options
context:
space:
mode:
Diffstat (limited to 'tests/server')
-rw-r--r--tests/server/sockfilt.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/server/sockfilt.c b/tests/server/sockfilt.c
index d01a2d1fe..cad48603a 100644
--- a/tests/server/sockfilt.c
+++ b/tests/server/sockfilt.c
@@ -837,6 +837,7 @@ int main(int argc, char *argv[])
curl_socket_t msgsock = CURL_SOCKET_BAD;
int wrotepidfile = 0;
char *pidname= (char *)".sockfilt.pid";
+ bool juggle_again;
int rc;
int error;
int arg=1;
@@ -1001,7 +1002,9 @@ int main(int argc, char *argv[])
if(!wrotepidfile)
goto sockfilt_cleanup;
- while(juggle(&msgsock, sock, &mode));
+ do {
+ juggle_again = juggle(&msgsock, sock, &mode);
+ } while(juggle_again);
sockfilt_cleanup: