mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-04 23:04:35 +01:00
pytest: fix spurious valgrind output.
Had a couple of tests randomly fail because a valgrind error file was not empty. It contained: lightning_channeld: Writing out status 65520: Broken pipe This shouldn't happen, but the simplest workaround is not to print that (useless) error. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
29b106720e
commit
c83823a525
@@ -73,9 +73,9 @@ void status_send(const u8 *msg TAKES)
|
||||
{
|
||||
report_logging_io("SIGUSR1");
|
||||
if (status_fd >= 0) {
|
||||
int type =fromwire_peektype(msg);
|
||||
if (!wire_sync_write(status_fd, msg))
|
||||
err(1, "Writing out status %i", type);
|
||||
/* No point printing error if lightningd is dead. */
|
||||
exit(1);
|
||||
} else {
|
||||
daemon_conn_send(status_conn, msg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user