rgb-cln/ccan
Rusty Russell 979fbeb3b0 lightningd: simplify --daemon.
Dumb programs which have a --daemon option call fork() early.  This is
terrible UX since startup errors get lost: the program exits with
"success" immediately then you discover via the logs that it didn't
start at all.

However, forking late introduced a heap of problems with changing
pids.  Instead, fork early but keep stderr and the parent around: if
we fail early on, the parent fails with us.  We release our parent
with an explicit action just before the main loop.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-08-04 21:29:03 +02:00
..
ccan lightningd: simplify --daemon. 2019-08-04 21:29:03 +02:00
licenses ccan: add local copy. 2015-06-12 13:29:06 +09:30
tools/configurator ccan: update to latest. 2019-08-02 15:56:15 +02:00
README CCAN: update to suppress path_readlink warning. 2019-08-02 15:56:15 +02:00

README

CCAN imported from http://ccodearchive.net.

CCAN version: init-2484-ge16aa40b