core-lightning/lightningd/test
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
..
Makefile makefiles: move all unit tests under make check-units 2019-06-30 16:41:30 +09:30
run-find_my_abspath.c lightningd: simplify --daemon. 2019-08-04 21:29:03 +02:00
run-invoice-select-inchan.c wire: use common/bigsize routines 2019-07-31 23:25:59 +00:00
run-jsonrpc.c wire: use common/bigsize routines 2019-07-31 23:25:59 +00:00