diff --git a/common/ecdh_hsmd.c b/common/ecdh_hsmd.c index 8afa4581c40a..68be59841eb2 100644 --- a/common/ecdh_hsmd.c +++ b/common/ecdh_hsmd.c @@ -1,5 +1,6 @@ #include "config.h" #include +#include #include #include #include @@ -33,4 +34,6 @@ void ecdh_hsmd_setup(int hsm_fd, { stashed_hsm_fd = hsm_fd; stashed_failed = failed; + /* Like read_fds in subd.c: don't trust sender's O_NONBLOCK state (issue #9060). */ + io_fd_block(hsm_fd, true); }