]> Sergey Matveev's repositories - public-inbox.git/commit
qspawn: catch transient errors on pipe, EPOLL_CTL_ADD
authorEric Wong <e@yhbt.net>
Thu, 9 Jan 2020 11:14:52 +0000 (11:14 +0000)
committerEric Wong <e@80x24.org>
Thu, 9 Jan 2020 11:23:34 +0000 (11:23 +0000)
commit79585642a30f54622541496a9a0090f0aa591692
treee2dd98f9a802d7d5ecd7d1748122de6ddf5f26d3
parentdfd30c7aa686968b8a0dbd65c40b90d92816f87c
qspawn: catch transient errors on pipe, EPOLL_CTL_ADD

popen_rd dies on pipe()/pipe2() failure due to FD exhaustion.

EPOLL_CTL_ADD (via PublicInbox::HTTPD::Async->new) may also fail
due to memory exhaustion or exceeding the value of
/proc/sys/fs/epoll/max_user_watches
lib/PublicInbox/Qspawn.pm