]> Sergey Matveev's repositories - public-inbox.git/commit
lei: restore default __DIE__ handler for event loop
authorEric Wong <e@80x24.org>
Thu, 17 Dec 2020 11:23:57 +0000 (11:23 +0000)
committerEric Wong <e@80x24.org>
Sat, 19 Dec 2020 09:32:08 +0000 (09:32 +0000)
commitcf731a1422064344f25c214670fb0007ab1d4c2c
tree25d1e9733193bb27ed0733a93ec5f5dea93bf5c1
parent7e7f4bfca5f2ef0d123445e074280f5e65cdfb85
lei: restore default __DIE__ handler for event loop

The kqueue code paths will trigger exceptions which are caught
by eval{}, so we can't be calling exit() from the __DIE__
handler and expect eval to catch it.

We only need the __DIE__ handler to deal with fork or open
failures at startup (since stderr is pointed to /dev/null).
After that we can rely on OnDestroy writing errors to syslog
when it goes out of scope.
lib/PublicInbox/LEI.pm