]> git.tue.mpg.de Git - paraslash.git/commitdiff
gui: Improve "closing command fd" log message.
authorAndre Noll <maan@tuebingen.mpg.de>
Fri, 17 Jan 2025 19:52:48 +0000 (20:52 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Wed, 22 Jan 2025 20:11:50 +0000 (21:11 +0100)
Make the EOF case silent because this is no real error, but print the
log message with a high severity level if the read operation failed
for any other reason.

gui.c

diff --git a/gui.c b/gui.c
index feb65c0f8883372326525dc13531cbceeef4d50f..56042ad29d2fead24ec6291cf183c7e4e171b4bc 100644 (file)
--- a/gui.c
+++ b/gui.c
@@ -973,8 +973,8 @@ static int exec_post_monitor(__a_unused struct sched *s, void *context)
                        ct->flags[i] = 0;
                }
                if (ret < 0 || exec_pid == 0) {
-                       if (ret < 0)
-                               PARA_NOTICE_LOG("closing command fd %d: %s",
+                       if (ret < 0 && ret != -E_EOF)
+                               PARA_ERROR_LOG("closing command fd %d: %s",
                                        i, para_strerror(-ret));
                        close(exec_fds[i]);
                        exec_fds[i] = -1;