]> Sergey Matveev's repositories - public-inbox.git/commit
lei: drop $SIG{__DIE__}, add oneshot fallbacks
authorEric Wong <e@80x24.org>
Thu, 17 Dec 2020 23:54:04 +0000 (23:54 +0000)
committerEric Wong <e@80x24.org>
Sat, 19 Dec 2020 09:32:08 +0000 (09:32 +0000)
commitf2c7b911a1c4a7520091ba7224773c30e409c337
tree576386c92369a5f3f1005f68b18b4d6be1470b17
parentcf731a1422064344f25c214670fb0007ab1d4c2c
lei: drop $SIG{__DIE__}, add oneshot fallbacks

We'll force stdout+stderr to be a pipe the spawning client
controls, thus there's no need to lose error reporting by
prematurely redirecting stdout+stderr to /dev/null.

We can now rely exclusively on OnDestroy to write to syslog() on
uncaught die failures.

Also support falling back to oneshot mode on socket and cwd
failures, since some commands may still be useful if the current
working directory goes missing :P
lib/PublicInbox/LEI.pm
script/lei
t/lei.t