]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests: use exec when spawning nghttpx
authorDan Fandrich <dan@coneharvesters.com>
Fri, 24 May 2024 21:46:19 +0000 (14:46 -0700)
committerDan Fandrich <dan@coneharvesters.com>
Fri, 24 May 2024 23:38:17 +0000 (16:38 -0700)
This stops keeping perl and shell processes around that are no longer
needed, plus it eliminates an unneeded shell message when the server is
later terminated.

Closes #13772

tests/http2-server.pl
tests/http3-server.pl

index 52c5284c0c7beee9e4cc8a7633ae0f456a8399f3..d4367da6362bac2e9105999b8dba3edc4bc214be 100755 (executable)
@@ -116,4 +116,4 @@ my $cmdline="$nghttpx --backend=$connect ".
     "--errorlog-file=$logfile ".
     "$keyfile $certfile";
 print "RUN: $cmdline\n" if($verbose);
-system("$cmdline 2>/dev/null");
+exec("exec $cmdline 2>/dev/null");
index bc9e98ad1108fbb4dc4c42989f38b8052bfb0c76..97e6998be030ab26f75fe2d1944d698c3b02634d 100755 (executable)
@@ -116,4 +116,4 @@ my $cmdline="$nghttpx --http2-proxy --backend=$connect ".
     "--conf=$conf ".
     "$keyfile $certfile";
 print "RUN: $cmdline\n" if($verbose);
-system("$cmdline 2>/dev/null");
+exec("exec $cmdline 2>/dev/null");