]> git.sesse.net Git - nageru/blobdiff - shared/midi_device.cpp
On errors, abort() instead of exit(1); exit() in a multithreaded program just gives...
[nageru] / shared / midi_device.cpp
index 9d77e218f5078f37b5aa3eeba8c9bb87d84a8226..ab84fda6db51099e3ecf03013bc08a7b0a60947a 100644 (file)
@@ -21,7 +21,7 @@ MIDIDevice::~MIDIDevice()
        const uint64_t one = 1;
        if (write(should_quit_fd, &one, sizeof(one)) != sizeof(one)) {
                perror("write(should_quit_fd)");
-               exit(1);
+               abort();
        }
        midi_thread.join();
        close(should_quit_fd);