diff options
author | cbdev <cb@cbcdn.com> | 2020-04-19 21:28:21 +0200 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2020-04-19 21:28:21 +0200 |
commit | f053dc36fd515e8d7952e1bdefdc0050226a27c4 (patch) | |
tree | cc0c15bcf45ddee6576e7ad1e831b8f497eafe88 /backends/jack.c | |
parent | a3a79b824a1936868ba4ab5be53998593b0e9047 (diff) | |
download | midimonster-f053dc36fd515e8d7952e1bdefdc0050226a27c4.tar.gz midimonster-f053dc36fd515e8d7952e1bdefdc0050226a27c4.tar.bz2 midimonster-f053dc36fd515e8d7952e1bdefdc0050226a27c4.zip |
Fix unchecked returns
Diffstat (limited to 'backends/jack.c')
-rw-r--r-- | backends/jack.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/backends/jack.c b/backends/jack.c index d430c60..c84ed0f 100644 --- a/backends/jack.c +++ b/backends/jack.c @@ -205,7 +205,9 @@ static int mmjack_process(jack_nframes_t nframes, void* instp){ //notify the main thread if(mark){ DBGPF("Notifying handler thread for instance %s", inst->name); - send(data->fd, "c", 1, 0); + if(send(data->fd, "c", 1, 0) != 1){ + DBGPF("Failed to notify main thread on %s", inst->name); + } } return rv; } |