]> Sergey Matveev's repositories - public-inbox.git/commit
http: reuse STDIN if it's already /dev/null
authorEric Wong <e@80x24.org>
Tue, 24 Jan 2023 09:49:35 +0000 (09:49 +0000)
committerEric Wong <e@80x24.org>
Tue, 24 Jan 2023 10:07:54 +0000 (10:07 +0000)
commit69ff4be6e7c8257834815dbdc0a2fd3563f6f350
tree83b9edb50031cb255e0e6eaa7ce1b97c6a12bf5d
parent4cad67e24c9babd9422ed0c450a49d38df2cb314
http: reuse STDIN if it's already /dev/null

It's typical for -netd/-httpd to have STDIN pointed to
/dev/null, so try to use that instead of opening another
file description.
lib/PublicInbox/HTTP.pm