summaryrefslogtreecommitdiffhomepage
path: root/MIDI.h
diff options
context:
space:
mode:
Diffstat (limited to 'MIDI.h')
-rw-r--r--MIDI.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/MIDI.h b/MIDI.h
index 5ce050e..0dbc4aa 100644
--- a/MIDI.h
+++ b/MIDI.h
@@ -69,6 +69,8 @@ public:
if (npfd != 1) {
std::cout << "Warning: " << std::to_string(npfd) << " poll fds for MIDI" << std::endl;
+ } else if (fd() <= 2) {
+ std::cout << "Warning: Bad MIDI fd: " << std::to_string(fd()) << std::endl;
}
}