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
..
2019-08-04 21:29:03 +02:00
2017-10-20 18:31:32 +02:00
2019-07-31 23:22:54 +00:00
2019-07-30 17:38:54 +08:00
2019-07-31 23:22:54 +00:00
2019-01-29 04:50:01 +00:00
2019-08-02 17:32:48 +02:00
2019-06-04 01:29:39 +00:00
2019-06-30 16:41:30 +09:30
2019-07-31 23:22:54 +00:00
2019-07-26 03:53:03 +00:00
2019-08-02 17:32:48 +02:00
2019-06-04 01:29:39 +00:00
2019-07-26 03:53:03 +00:00
2019-04-09 12:37:16 -07:00
2019-06-12 02:00:15 +00:00
2018-07-25 02:13:52 +00:00
2019-06-11 23:19:11 +00:00
2019-06-11 23:19:11 +00:00
2019-07-31 23:22:54 +00:00
2019-04-09 12:37:16 -07:00
2019-04-10 23:48:39 +00:00
2019-04-10 23:48:39 +00:00
2019-08-01 18:49:25 +08:00
2019-04-12 03:32:48 +00:00
2019-07-24 16:16:53 +02:00
2019-05-31 17:57:10 +02:00
2019-06-17 21:46:25 +02:00
2019-06-17 21:46:25 +02:00
2019-06-12 02:22:43 +00:00
2019-06-12 02:00:15 +00:00
2019-07-28 06:09:56 +00:00
2019-06-12 02:00:15 +00:00
2019-08-04 21:29:03 +02:00
2019-08-04 21:29:03 +02:00
2019-06-07 01:23:51 +00:00
2018-02-07 00:46:49 +00:00
2019-07-02 03:26:10 +00:00
2019-06-07 01:23:51 +00:00
2019-07-31 23:25:59 +00:00
2019-08-04 20:54:53 +02:00
2019-02-07 20:33:50 +00:00
2019-08-01 18:49:25 +08:00
2019-08-01 18:49:25 +08:00
2019-07-31 23:22:54 +00:00
2018-04-25 14:33:38 +02:00
2019-07-31 23:22:54 +00:00
2019-06-04 01:29:39 +00:00
2019-08-04 21:29:03 +02:00
2019-07-27 05:16:22 +00:00
2019-07-30 02:14:49 +00:00
2019-01-23 22:08:08 +01:00
2019-08-02 17:32:48 +02:00
2019-07-26 03:53:03 +00:00
2019-08-02 15:56:15 +02:00
2019-08-01 18:49:25 +08:00
2019-07-16 06:10:58 +00:00
2018-09-14 22:11:23 +02:00
2019-07-30 08:44:01 +08:00
2019-07-28 07:24:04 +00:00
2019-07-28 07:24:04 +00:00
2019-07-28 07:24:04 +00:00
2019-08-03 09:10:11 +00:00
2019-07-30 08:44:01 +08:00
2019-07-26 03:53:03 +00:00
2019-07-26 03:53:03 +00:00
2019-06-28 03:31:43 +00:00
2019-06-28 03:31:43 +00:00