libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit a6249094154d811189c1e25c9eb2001712ecb571
parent 6bda5e7fa7534122846e40e87517409d569490f5
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sat, 20 Feb 2016 12:16:40 +0000

be more forceful about stopping test clients

Diffstat:
Msrc/testcurl/test_concurrent_stop.c | 11+++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/testcurl/test_concurrent_stop.c b/src/testcurl/test_concurrent_stop.c @@ -1,6 +1,6 @@ /* This file is part of libmicrohttpd - Copyright (C) 2007, 2009, 2011, 2015 Christian Grothoff + Copyright (C) 2007, 2009, 2011, 2015, 2016 Christian Grothoff libmicrohttpd is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published @@ -149,8 +149,12 @@ do_gets (int port) _exit (0); } } + sleep (1); for (j=0;j<PAR;j++) + { + kill (par[j], SIGKILL); waitpid (par[j], NULL, 0); + } _exit (0); } @@ -175,7 +179,10 @@ testMultithreadedGet (int port, pid_t p; d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_DEBUG | poll_flag, - port, NULL, NULL, &ahc_echo, "GET", MHD_OPTION_END); + port, + NULL, NULL, + &ahc_echo, "GET", + MHD_OPTION_END); if (d == NULL) return 16; p = do_gets (port);