]> Sergey Matveev's repositories - public-inbox.git/commit
watch: make waitpid() synchronous for Maildir scans
authorEric Wong <e@yhbt.net>
Mon, 29 Jun 2020 10:34:21 +0000 (10:34 +0000)
committerEric Wong <e@yhbt.net>
Tue, 30 Jun 2020 03:05:54 +0000 (03:05 +0000)
commita49178807cb318c19082c1b970aab942acffd565
tree0d8ae87fdf932b8f47e0bd4af8c878ba2e854f8b
parent761baa2a300e426885675a01e4773193ab7101ff
watch: make waitpid() synchronous for Maildir scans

Maildir scanning still happens in the main process.  Scanning
dozens of Maildirs is still time-consuming and monopolizes the
event loop during WatchMaildir::event_step.  This can cause
cause zombies to accumulate before Sigfd::event_step triggers
DS::reap_pids.
lib/PublicInbox/WatchMaildir.pm