From 96fb11bed0def1bfb3666b732dd32be253f46c01 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 22 May 2022 14:46:23 +0200 Subject: -fix --- src/bank-lib/fakebank.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/bank-lib') diff --git a/src/bank-lib/fakebank.c b/src/bank-lib/fakebank.c index db30851d8..66e44e1db 100644 --- a/src/bank-lib/fakebank.c +++ b/src/bank-lib/fakebank.c @@ -497,9 +497,10 @@ lp_trigger (struct LongPoller *lp, GNUNET_free (lp); h->mhd_again = true; #ifdef __linux__ - if (-1 != h->lp_event) + if (-1 == h->lp_event) #else - if (-1 != h->lp_event_in && -1 != h->lp_event_out) + if ( (-1 == h->lp_event_in) && + (-1 == h->lp_event_out) ) #endif { if (NULL != h->mhd_task) @@ -2745,6 +2746,7 @@ TALER_FAKEBANK_start2 (uint16_t port, #else { int pipefd[2]; + if (0 != pipe (pipefd)) { GNUNET_log_strerror (GNUNET_ERROR_TYPE_ERROR, -- cgit v1.2.3