]> Sergey Matveev's repositories - public-inbox.git/commit
ds: use WNOHANG with waitpid if inside event loop
authorEric Wong <e@80x24.org>
Mon, 8 Jul 2019 07:01:59 +0000 (07:01 +0000)
committerEric Wong <e@80x24.org>
Mon, 8 Jul 2019 07:10:35 +0000 (07:10 +0000)
commit364d2e95439b00a211d007d93c5ba263b56c1ddf
tree857c1c9f69378ce9b4dc51dc0d736e4ff3f38ba6
parent6d3644f5dd7c54fbee33be728f6735e4419cdc0d
ds: use WNOHANG with waitpid if inside event loop

While we're usually not stuck waiting on waitpid after
seeing a pipe EOF or even triggering SIGPIPE in the process
(e.g. git-http-backend) we're reading from, it MAY happen
and we should be careful to never hang the daemon process
on waitpid calls.

v2: use "eq" for string comparison against 'DEFAULT'
lib/PublicInbox/DS.pm
lib/PublicInbox/Git.pm
lib/PublicInbox/ProcessPipe.pm
lib/PublicInbox/Qspawn.pm