mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 22:45:27 +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:
parent
409b26916c
commit
beed4fcccc
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue