lightningd/log.c: Fix up handling of SIGHUP.

Fixes: #4240

ChangeLog-Fixed: log: Do not terminate on the second received SIGHUP.
This commit is contained in:
ZmnSCPxj jxPCSnmZ
2020-12-02 09:56:30 +08:00
committed by Rusty Russell
parent 67d8fdcc75
commit a437936c78
2 changed files with 17 additions and 2 deletions

View File

@@ -1532,7 +1532,6 @@ def test_feerates(node_factory):
assert htlc_success_cost == htlc_feerate * 703 // 1000
@pytest.mark.xfail(strict=True)
def test_logging(node_factory):
# Since we redirect, node.start() will fail: do manually.
l1 = node_factory.get_node(options={'log-file': 'logfile'}, start=False)