Browse Source
BackgroundL Each log has a log_book: many logs can share the same one, as each one can have a separate prefix. Testing tickled a bug at the end of this series, where subd was logging to the peer's log_book on shutdown, but the peer was already freed. We've already had issues with logging while lightningd is shutting down. There are times when reference counting really is the right answer, this seems to be one of them: the 'struct log' share the 'struct log_book' and the last 'struct log' cleans it up. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>ppa-0.6.1
Rusty Russell
7 years ago
7 changed files with 16 additions and 24 deletions
Loading…
Reference in new issue