pcspkr piano should exit if it can't open spkr [ci skip]

This commit is contained in:
Kevin Lange 2015-06-02 22:24:41 -07:00
parent 9e2721eef0
commit 478835401e

View File

@ -39,6 +39,7 @@ int main(int argc, char * argv[]) {
spkr = open("/dev/spkr", O_WRONLY);
if (spkr == -1) {
fprintf(stderr, "%s: could not open speaker\n", argv[0]);
return 1;
}
set_unbuffered();