There were still a few places where we used worker processes
unnecessarily in tests, causing a small amount of unnecessary
overhead.
Followup-to: ad221e9b2852f6c5 ("t/*.t: disable nntpd/httpd worker processes in most tests")
my $spawn_httpd = sub {
my (@args) = @_;
+ push @args, '-W0';
$pid = fork;
if ($pid == 0) {
exec $httpd, @args, "--stdout=$out", "--stderr=$err", $psgi;
}
ok($sock, 'sock created');
- my $cmd = [ $nntpd, "--stdout=$out", "--stderr=$err" ];
+ my $cmd = [ $nntpd, '-W0', "--stdout=$out", "--stderr=$err" ];
$pid = spawn_listener(undef, $cmd, [ $sock ]);
ok(defined $pid, 'forked nntpd process successfully');
my $host_port = $sock->sockhost . ':' . $sock->sockport;