From: Dan Fandrich Date: Fri, 24 May 2024 21:46:19 +0000 (-0700) Subject: tests: use exec when spawning nghttpx X-Git-Tag: curl-8_9_0~397 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=548d169c9c1eda3e7f788468b685a040110bbe31;p=thirdparty%2Fcurl.git tests: use exec when spawning nghttpx 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 --- diff --git a/tests/http2-server.pl b/tests/http2-server.pl index 52c5284c0c..d4367da636 100755 --- a/tests/http2-server.pl +++ b/tests/http2-server.pl @@ -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"); diff --git a/tests/http3-server.pl b/tests/http3-server.pl index bc9e98ad11..97e6998be0 100755 --- a/tests/http3-server.pl +++ b/tests/http3-server.pl @@ -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");