]> git.tue.mpg.de Git - paraslash.git/commitdiff
audiod clean_exit(): Only check status fd once
authorAndre <maan@p133.(none)>
Thu, 15 Jun 2006 06:08:38 +0000 (08:08 +0200)
committerAndre <maan@p133.(none)>
Thu, 15 Jun 2006 06:08:38 +0000 (08:08 +0200)
The close_stat_pipe() already does this check.

audiod.c

index 90290639d853ce3fb7fd7572b8e136669b66642a..8b9f181b80edfb74b31ec08aed23d61d74c8c19f 100644 (file)
--- a/audiod.c
+++ b/audiod.c
@@ -288,8 +288,7 @@ void __noreturn clean_exit(int status, const char *msg)
        PARA_EMERG_LOG("%s\n", msg);
        if (socket_name)
                unlink(socket_name);
-       if (stat_task->fd >= 0)
-               close_stat_pipe();
+       close_stat_pipe();
        exit(status);
 }