From 548d169c9c1eda3e7f788468b685a040110bbe31 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Fri, 24 May 2024 14:46:19 -0700 Subject: [PATCH] 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 --- tests/http2-server.pl | 2 +- tests/http3-server.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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");