]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/httpd-corner.t
config: simplify lookup* methods
[public-inbox.git] / t / httpd-corner.t
index f5937e7640187a525245927965204667174f54a0..4077a6d1a44bdb308dbacdaef2b5c7f7c2fcbef9 100644 (file)
@@ -31,6 +31,9 @@ my $httpd = 'blib/script/public-inbox-httpd';
 my $psgi = "./t/httpd-corner.psgi";
 my $sock = tcp_server();
 
+# make sure stdin is not a pipe for lsof test to check for leaking pipes
+open(STDIN, '<', '/dev/null') or die 'no /dev/null: $!';
+
 # Make sure we don't clobber socket options set by systemd or similar
 # using socket activation:
 my ($defer_accept_val, $accf_arg);