[notcurses-demo] write input readiness to correct pipe side #2290

pull/2292/head
nick black 3 years ago
parent 6da04e04db
commit a087960ab7
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -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);

Loading…
Cancel
Save