]> git.sesse.net Git - nageru/blobdiff - nageru/alsa_pool.cpp
On errors, abort() instead of exit(1); exit() in a multithreaded program just gives...
[nageru] / nageru / alsa_pool.cpp
index 978f236886256e529e448c6dbcd37c53be951bfc..bdff5af09917b0c13a79bc5453b3e255ffd02ff4 100644 (file)
@@ -44,7 +44,7 @@ ALSAPool::~ALSAPool()
        const uint64_t one = 1;
        if (write(should_quit_fd, &one, sizeof(one)) != sizeof(one)) {
                perror("write(should_quit_fd)");
-               exit(1);
+               abort();
        }
        inotify_thread.join();