aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2018-03-28 15:05:13 +0200
committercbdev <cb@cbcdn.com>2018-03-28 15:05:13 +0200
commit534207d16314a4f6a69d36cf2305a3fe435a769b (patch)
tree5a517db8c5f9d7845a86b1f307d7ac1d1b34e70f
parent72ffbbd002034216f56dc4d00481b2feb61fdbee (diff)
parenta261ab738d4fd5e99a7009da882dde908171f187 (diff)
downloadmidimonster-534207d16314a4f6a69d36cf2305a3fe435a769b.tar.gz
midimonster-534207d16314a4f6a69d36cf2305a3fe435a769b.tar.bz2
midimonster-534207d16314a4f6a69d36cf2305a3fe435a769b.zip
Merge branch 'master' into rtpmidi
-rw-r--r--backend.c3
-rw-r--r--midimonster.c1
2 files changed, 3 insertions, 1 deletions
diff --git a/backend.c b/backend.c
index 3ed336d..e9b12df 100644
--- a/backend.c
+++ b/backend.c
@@ -28,6 +28,9 @@ int backends_handle(size_t nfds, managed_fd* fds){
DBGPF("Notifying backend %s of %zu waiting FDs\n", backends[u].name, n);
rv |= backends[u].process(n, fds);
+ if(rv){
+ fprintf(stderr, "Backend %s failed to handle input\n", backends[u].name);
+ }
}
return rv;
}
diff --git a/midimonster.c b/midimonster.c
index 2ca4a92..629a0d9 100644
--- a/midimonster.c
+++ b/midimonster.c
@@ -298,7 +298,6 @@ int main(int argc, char** argv){
//run backend processing, collect events
DBGPF("%zu backend FDs signaled\n", n);
if(backends_handle(n, signaled_fds)){
- fprintf(stderr, "Backends failed to handle input\n");
goto bail;
}