]> Sergey Matveev's repositories - public-inbox.git/commit
httpd/async: set O_NONBLOCK correctly
authorEric Wong <e@80x24.org>
Fri, 5 Feb 2021 00:13:54 +0000 (05:13 +0500)
committerEric Wong <e@80x24.org>
Fri, 5 Feb 2021 00:16:38 +0000 (00:16 +0000)
commitda143a9393faa4956403b3f7a4c6ecb5ae3bcf01
tree864f9829aa79e68497e387057b37953835f48b85
parente3c82310f5df24a42a0dc3c08b97b409a185b3a3
httpd/async: set O_NONBLOCK correctly

While Perl tie is nice for some things, getting
IO::Handle->blocking to work transparently with it doesn't
seem possible at the moment.

Add some examples in t/spawn.t for future hackers.

Fixes: 22e51bd9da476fa9 ("qspawn: switch to ProcessPipe via popen_rd")
lib/PublicInbox/HTTPD/Async.pm
t/spawn.t