From a087960ab749ac75ca1965d0d9af20ff457440f7 Mon Sep 17 00:00:00 2001 From: nick black Date: Thu, 21 Oct 2021 14:02:21 -0400 Subject: [PATCH] [notcurses-demo] write input readiness to correct pipe side #2290 --- src/demo/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/demo/input.c b/src/demo/input.c index 8c1bf9494..f3a43bf60 100644 --- a/src/demo/input.c +++ b/src/demo/input.c @@ -119,7 +119,7 @@ pass_along(const ncinput* ni){ pthread_mutex_unlock(&lock); const uint64_t eventcount = 1; int ret = 0; - if(write(input_pipefds[0], &eventcount, sizeof(eventcount)) < 0){ + if(write(input_pipefds[1], &eventcount, sizeof(eventcount)) < 0){ ret = -1; } pthread_cond_signal(&cond);