]> Sergey Matveev's repositories - public-inbox.git/commit
spawn: better error handling
authorEric Wong <e@80x24.org>
Mon, 30 Dec 2019 05:04:16 +0000 (05:04 +0000)
committerEric Wong <e@80x24.org>
Mon, 30 Dec 2019 17:52:19 +0000 (17:52 +0000)
commit39f2513042482162c8bb855c67b3806786e3516e
treefced541a0884458e3b353f50e5e59fcc0567764d
parent30afcadb13f446c99952883bbaa54e102757b682
spawn: better error handling

Since vfork always shares memory between the child and parent,
we can propagate errors to the parent errno using shared memory
instead of just dumping to stderr and hoping somebody sees it.
lib/PublicInbox/Spawn.pm