test/recipes/80-test_cmp_http.t: Kill the mock server brutally
authorRichard Levitte <levitte@openssl.org>
Thu, 17 Jun 2021 08:47:26 +0000 (10:47 +0200)
committerMatt Caswell <matt@openssl.org>
Thu, 17 Jun 2021 09:38:48 +0000 (10:38 +0100)
To kill a subprocess with the KILL signal is pretty brutal.  However,
it doesn't seem to be killed completely on some platforms, which makes
this test recipe hang indefinitely when (implicitly) closing the file
handle for this server ($server_fh).  A brutal KILL resolves this
problem.

Fixes #15781

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15797)

test/recipes/80-test_cmp_http.t

index 10f2b84c68b0e711444b5f4e4950d4e0f68b245a..dddc1db918a8ba79bbed65205f3d5f30403e17a0 100644 (file)
@@ -294,5 +294,5 @@ sub start_mock_server {
 sub stop_mock_server {
     my $pid = $_[0];
     print "Killing mock server with pid=$pid\n";
-    kill('QUIT', $pid);
+    kill('KILL', $pid);
 }