core-lightning/lightningd
Christian Decker bd6ce102e6 plugin: Better cleanup when a plugin fails
This used to be a use-after-free bug in which we'd free the plugin and
then still have two connections that expect to be able to operate on
the plugin. This now signals the connections to exit and cleans up
once they do.

Signed-off-by: Christian Decker <decker.christian@gmail.com>
2018-12-05 23:15:59 +00:00
..
test plugins: add and install built-in plugin dir, add clear and disable options. 2018-12-05 01:22:55 +01:00
.gitignore handshaked: remove. 2017-10-20 18:31:32 +02:00
bitcoind.c bitcoin: If we fail to estimate the fee in testnet use the minfee 2018-10-29 03:20:08 +00:00
bitcoind.h lightningd: allow more than one bitcoind request at once, run multiple queues. 2018-09-19 13:21:21 +02:00
chaintopology.c Rename struct json_result to struct json_stream (RENAMEONLY) 2018-10-19 22:02:11 +00:00
chaintopology.h chaintopology: remove redundant wallet pointer. 2018-09-03 05:01:40 +00:00
channel_control.c channeld: wire up dev_memleak. 2018-11-22 05:15:42 +00:00
channel_control.h lightningd: peer_start_channeld always returns true; make it void. 2018-08-10 12:46:45 +02:00
channel_state.h lightningd: new state AWAITING_UNILATERAL. 2018-08-23 14:46:22 +02:00
channel.c json-invoice: add routeboost, warnings. 2018-09-28 15:03:42 +02:00
channel.h json-invoice: add routeboost, warnings. 2018-09-28 15:03:42 +02:00
closing_control.c closingd: retransmit shutdown on reconnect. 2018-11-01 23:31:54 +01:00
closing_control.h gossipd: drain fd instead of passing around gossip index. 2018-04-26 05:47:57 +00:00
connect_control.c connectd: wire up dev_memleak. 2018-11-22 05:15:42 +00:00
connect_control.h connectd: remove separate address hint message. 2018-08-09 19:44:27 +02:00
gossip_control.c gossipd: wire up memleak detection. 2018-11-22 05:15:42 +00:00
gossip_control.h connectd: wean off gossip_wire message types, use our own. 2018-07-25 02:13:52 +00:00
gossip_msg.c gossipd: hand raw pubkeys in getnodes and getchannels entries. 2018-10-19 22:02:11 +00:00
gossip_msg.h gossipd: hand raw pubkeys in getnodes and getchannels entries. 2018-10-19 22:02:11 +00:00
hsm_control.c lightningd: use hsm_get_client_fd() helper for global daemons too. 2018-09-20 09:49:39 +02:00
hsm_control.h lightningd: use hsm_get_client_fd() helper for global daemons too. 2018-09-20 09:49:39 +02:00
htlc_end.c spelling: Check LockTime Verify. 2018-10-23 16:55:35 +02:00
htlc_end.h htlc: rename local flag to am_origin, add FIXME. 2018-10-09 23:17:54 +00:00
invoice.c Rename struct json_result to struct json_stream (RENAMEONLY) 2018-10-19 22:02:11 +00:00
invoice.h invoices: Extensive reorganization of invoice system. 2018-01-16 13:03:54 +01:00
json_escaped.c common/json: move JSON creation routines into lightningd/ 2018-10-19 22:02:11 +00:00
json_escaped.h common/json: move JSON creation routines into lightningd/ 2018-10-19 22:02:11 +00:00
json_stream.c jsonrpc: allow multiple commands at once. 2018-11-20 16:51:19 +01:00
json_stream.h jsonrpc: allow multiple commands at once. 2018-11-20 16:51:19 +01:00
json.c json.c and jsonrpc.c: move functions between them. 2018-11-20 16:51:19 +01:00
json.h json.c and jsonrpc.c: move functions between them. 2018-11-20 16:51:19 +01:00
jsonrpc_errors.h plugin: Map results back to the incoming JSON-RPC request 2018-12-02 22:55:47 +00:00
jsonrpc.c jsonrpc: Use tal_arr_remove instead of leaving NULL in the commands 2018-12-05 23:15:59 +00:00
jsonrpc.h plugin: Remove added JSON-RPC methods if a plugin gets killed 2018-12-02 22:55:47 +00:00
lightningd.c plugins: add and install built-in plugin dir, add clear and disable options. 2018-12-05 01:22:55 +01:00
lightningd.h jsonrpc: Make an explicit jsonrpc struct 2018-12-02 22:55:47 +00:00
log_status.c Remove tal_len, use tal_count() or tal_bytelen(). 2018-07-30 11:31:17 +02:00
log_status.h status: add multiple levels of logging. 2018-02-07 00:46:49 +00:00
log.c Rename struct json_result to struct json_stream (RENAMEONLY) 2018-10-19 22:02:11 +00:00
log.h Rename struct json_result to struct json_stream (RENAMEONLY) 2018-10-19 22:02:11 +00:00
Makefile openingd: wire up dev_memleak. 2018-11-22 05:15:42 +00:00
memdump.c channeld: wire up dev_memleak. 2018-11-22 05:15:42 +00:00
memdump.h channeld: wire up dev_memleak. 2018-11-22 05:15:42 +00:00
onchain_control.c onchaind: wire up dev_memleak. 2018-11-22 05:15:42 +00:00
onchain_control.h onchaind: Replay stored channeltxs to restore onchaind state 2018-04-25 14:33:38 +02:00
opening_control.c memleak: don't get stuck if per-peer daemons die. 2018-11-22 05:15:42 +00:00
opening_control.h openingd: wire up dev_memleak. 2018-11-22 05:15:42 +00:00
options.c plugins: add and install built-in plugin dir, add clear and disable options. 2018-12-05 01:22:55 +01:00
options.h opts: Split early from non-early args so plugins can register theirs 2018-11-13 00:44:50 +01:00
param.c common/utils.h: add tal_arr_expand helper. 2018-09-27 22:57:19 +02:00
param.h param: updated comments in the spirit of #1899 2018-09-03 00:40:27 +00:00
pay.c Rename struct json_result to struct json_stream (RENAMEONLY) 2018-10-19 22:02:11 +00:00
pay.h Rename struct json_result to struct json_stream (RENAMEONLY) 2018-10-19 22:02:11 +00:00
payalgo.c docs: Mention that msatoshi on pay is not optional, but ignored 2018-11-13 06:17:50 +01:00
payalgo.h payalgo: New file for pay command. 2018-02-16 13:08:29 +01:00
peer_control.c memleak: don't get stuck if per-peer daemons die. 2018-11-22 05:15:42 +00:00
peer_control.h channeld: wire up dev_memleak. 2018-11-22 05:15:42 +00:00
peer_htlcs.c Update for latest bolt version: bca814e270dcbee2fea51c0a26ca99efef261f2b 2018-10-28 23:51:05 +00:00
peer_htlcs.h onchaind: include htlc id in htlc_stub so we agree on what HTLC we're closing. 2018-10-23 16:55:35 +02:00
ping.c Rename struct json_result to struct json_stream (RENAMEONLY) 2018-10-19 22:02:11 +00:00
ping.h ping: complete JSON RPC ping commands even if one ping gets no response. 2018-09-14 22:11:23 +02:00
plugin.c plugin: Better cleanup when a plugin fails 2018-12-05 23:15:59 +00:00
plugin.h plugins: add and install built-in plugin dir, add clear and disable options. 2018-12-05 01:22:55 +01:00
subd.c common/msg_queue: make it a tal object. 2018-10-29 04:06:16 +00:00
subd.h common/msg_queue: make it a tal object. 2018-10-29 04:06:16 +00:00
watch.c txwatch: hand ld to callback, don't assume channel is non-NULL. 2018-08-21 00:48:02 +02:00
watch.h txwatch: hand ld to callback, don't assume channel is non-NULL. 2018-08-21 00:48:02 +02:00