Rusty Russell
4633085ffd
lightningd: mark subd->conn notleak() properly in transition.
Since subd is temporarily unreferenced, and our leak detection goes up
to the highest unreferenced parent, it complains about openingd->conn.
The correct fix is to catch this where we detach the subd:
```
DEBUG:root:{
"id": 1,
"result": {
"leaks": [
{
"value": "0x556e0445d8f8",
"label": "ccan/ccan/io/io.c:91:struct io_conn",
"backtrace": [
"ccan/ccan/tal/tal.c:442 (tal_alloc_)",
"ccan/ccan/io/io.c:91 (io_new_conn_)",
"lightningd/subd.c:774 (new_subd)",
"lightningd/subd.c:828 (new_channel_subd_)",
"lightningd/opening_control.c:872 (peer_start_openingd)",
"lightningd/peer_control.c:1311 (peer_active)",
"lightningd/connect_control.c:458 (connectd_msg)",
"lightningd/subd.c:557 (sd_msg_read)",
"lightningd/subd.c:357 (read_fds)",
"ccan/ccan/io/io.c:59 (next_plan)",
"ccan/ccan/io/io.c:407 (do_plan)",
"ccan/ccan/io/io.c:417 (io_ready)",
"ccan/ccan/io/poll.c:453 (io_loop)",
"lightningd/io_loop_with_timers.c:22 (io_loop_with_timers)",
"lightningd/lightningd.c:1182 (main)",
"../csu/libc-start.c:308 (__libc_start_main)"
],
"parents": [
"lightningd/lightningd.c:107:struct lightningd"
]
}
]
}
}
```
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2022-07-09 09:59:52 +09:30
..
2022-07-09 09:59:52 +09:30
2021-10-28 15:51:38 +02:00
2022-06-27 17:21:35 +09:30
2021-10-15 12:09:36 +02:00
2022-06-27 17:21:35 +09:30
2021-09-17 09:43:22 +09:30
2022-07-04 22:14:06 +02:00
2022-03-23 13:20:12 +10:30
2021-01-10 13:44:04 +01:00
2022-07-04 22:14:06 +02:00
2022-07-04 22:14:06 +02:00
2022-04-02 09:40:18 +10:30
2022-01-20 15:24:06 +10:30
2022-03-05 15:12:12 +10:30
2022-02-07 13:02:09 +10:30
2022-06-28 06:09:01 +09:30
2022-03-23 13:20:12 +10:30
2021-12-06 10:05:39 +10:30
2022-07-08 19:21:11 +09:30
2022-03-23 13:20:12 +10:30
2022-07-04 22:14:06 +02:00
2022-02-08 11:15:52 +10:30
2022-03-24 09:53:38 +10:30
2021-09-17 09:43:22 +09:30
2022-04-20 16:30:05 +09:30
2021-12-28 04:42:42 +10:30
2021-12-06 10:05:39 +10:30
2020-09-08 09:42:00 +09:30
2022-06-21 06:52:35 +09:30
2020-09-08 09:42:00 +09:30
2022-03-05 15:03:34 +10:30
2019-05-31 17:57:10 +02:00
2021-12-06 10:05:39 +10:30
2020-08-11 08:39:24 +09:30
2022-06-27 17:21:35 +09:30
2021-11-30 13:34:44 +10:30
2022-07-04 22:14:06 +02:00
2022-06-27 17:21:35 +09:30
2021-12-06 10:05:39 +10:30
2021-09-17 09:43:22 +09:30
2022-07-09 09:59:52 +09:30
2022-07-09 09:59:52 +09:30
2022-06-17 14:14:02 +09:30
2022-03-23 13:20:12 +10:30
2022-03-10 09:40:09 +10:30
2022-07-04 22:14:06 +02:00
2022-03-31 19:38:05 +10:30
2022-04-12 15:17:52 +09:30
2022-03-31 13:40:27 +10:30
2021-12-28 04:42:42 +10:30
2022-03-29 10:55:12 +10:30
2021-12-01 05:44:28 +10:30
2022-07-04 22:14:06 +02:00
2022-03-23 13:20:12 +10:30
2022-07-09 09:59:52 +09:30
2022-03-23 13:20:12 +10:30
2022-07-09 09:59:52 +09:30
2021-09-17 09:43:22 +09:30
2022-07-04 22:14:06 +02:00
2022-02-08 11:15:52 +10:30
2022-07-07 22:03:29 -05:00
2022-06-17 20:30:16 +09:30
2022-02-08 11:15:52 +10:30
2022-02-08 11:15:52 +10:30
2022-07-04 22:14:06 +02:00
2022-03-31 13:40:27 +10:30
2022-02-08 11:15:52 +10:30
2022-06-17 14:18:48 +09:30
2021-06-25 09:49:33 +09:30
2022-06-27 17:21:35 +09:30
2021-09-17 09:43:22 +09:30
2022-06-27 17:21:35 +09:30
2021-12-14 09:33:10 +10:30
2022-07-04 22:14:06 +02:00
2021-06-16 10:29:17 +09:30
2022-06-24 14:02:04 +09:30
2022-07-09 09:59:52 +09:30
2022-03-30 06:27:52 +10:30
2021-12-06 10:05:39 +10:30
2021-10-15 12:09:36 +02:00