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
This commit is contained in:
Dan Fandrich 2024-05-24 14:46:19 -07:00
parent b3f23f2084
commit 548d169c9c
2 changed files with 2 additions and 2 deletions

View file

@ -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");

View file

@ -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");