]> Sergey Matveev's repositories - public-inbox.git/commit
testcommon: $ENV{TAIL} supports non-@ARGV redirects
authorEric Wong <e@yhbt.net>
Sat, 27 Jun 2020 10:03:53 +0000 (10:03 +0000)
committerEric Wong <e@yhbt.net>
Sun, 28 Jun 2020 22:27:29 +0000 (22:27 +0000)
commita3e57ebf3192885b1928de33c4e07b88f724b052
tree5c9fef2e254170147d8a6c4744edbe8568cdea47
parentb82d2eed5248d7e80cae5bfdf418a563ebfba3af
testcommon: $ENV{TAIL} supports non-@ARGV redirects

Existing use of the $ENV{TAIL} relied on parsing --std{out,err},
which was only usable for read-only daemons.  However, -watch
doesn't use PublicInbox::Daemon code(*), so attempt to figure
out redirects.

(*) -watch won't able to run as a daemon in cases when
    git-credential prompts for IMAP/NNTP passwords.
    PublicInbox::Daemon is also designed for read-only
    parallelism where all worker processes are the same.
    Any subprocesses spawned by -watch are to do specific
    tasks for a particular set of inboxes.
lib/PublicInbox/TestCommon.pm