mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-05 23:24:21 +01:00
lightningd: fix backwards test in sigchld.
This would never trigger, since test was backward. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -713,7 +713,7 @@ static void on_sigchild(int _ UNUSED)
|
||||
* __attribute__((warn_unused_result)) means we have to
|
||||
* "catch" the return value. */
|
||||
if (write(sigchld_wfd, "", 1) != 1) {
|
||||
if (errno != EAGAIN && errno == EWOULDBLOCK) {
|
||||
if (errno != EAGAIN && errno != EWOULDBLOCK) {
|
||||
/* Should not call this in a signal handler, but we're
|
||||
* already messed up! */
|
||||
fatal("on_sigchild: write errno %s", strerror(errno));
|
||||
|
||||
Reference in New Issue
Block a user