From 4fa65e3cddc9a891e2a294f4429c169582ffad01 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Fri, 17 Jan 2025 20:52:48 +0100 Subject: [PATCH] gui: Improve "closing command fd" log message. 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui.c b/gui.c index feb65c0f..56042ad2 100644 --- 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; -- 2.39.5