Browse Source

channeld: add debugging into io_loop.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 7 years ago
parent
commit
8bb20d127d
  1. 1
      channeld/Makefile
  2. 3
      channeld/channel.c

1
channeld/Makefile

@ -44,6 +44,7 @@ CHANNELD_COMMON_OBJS := \
common/htlc_wire.o \
common/initial_channel.o \
common/initial_commit_tx.o \
common/io_debug.o \
common/keyset.o \
common/key_derive.o \
common/msg_queue.o \

3
channeld/channel.c

@ -22,6 +22,7 @@
#include <common/derive_basepoints.h>
#include <common/dev_disconnect.h>
#include <common/htlc_tx.h>
#include <common/io_debug.h>
#include <common/key_derive.h>
#include <common/msg_queue.h>
#include <common/peer_failed.h>
@ -2168,7 +2169,7 @@ static int poll_with_masterfd(struct pollfd *fds, nfds_t nfds, int timeout)
fds_plus[nfds].events = POLLIN;
fds_plus[nfds].revents = 0;
r = poll(fds_plus, nfds+1, timeout);
r = debug_poll(fds_plus, nfds+1, timeout);
if (r > 0) {
if (fds_plus[nfds].revents & POLLIN) {
u8 *msg = wire_sync_read(peer, MASTER_FD);

Loading…
Cancel
Save