summaryrefslogtreecommitdiff
path: root/src/irmd/main.c
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2023-11-30 13:04:28 +0100
committerSander Vrijders <sander@ouroboros.rocks>2023-11-30 21:11:29 +0100
commit22686c1cded1d837b3e7677b7b7b7b6cc8592878 (patch)
treeea6ddcba6001bb1ba90deccb981f2bb9650088b5 /src/irmd/main.c
parent346b054ee32a9f7b8491f842709f72cc8d1f3f2e (diff)
downloadouroboros-22686c1cded1d837b3e7677b7b7b7b6cc8592878.tar.gz
ouroboros-22686c1cded1d837b3e7677b7b7b7b6cc8592878.zip
irmd: Don't log an error when server quits
The revision of the IRMd caused it to log an error when an application terminates and closes the unix socket (EPIPE) or the IRMd shutds down (EIRMD). These are expected and correct behaviour. Replaced the error logs with debug logs. Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/irmd/main.c')
-rw-r--r--src/irmd/main.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/irmd/main.c b/src/irmd/main.c
index f1e0e203..5e58052d 100644
--- a/src/irmd/main.c
+++ b/src/irmd/main.c
@@ -2314,8 +2314,13 @@ static void * mainloop(void * o)
goto fail_msg;
}
- if (ret_msg->result == -EPIPE || ret_msg->result == -EIRMD) {
- log_err("Failed to execute command: %d.", ret_msg->result);
+ if (ret_msg->result == -EPIPE) {
+ log_dbg("Terminated command: application closed socket.");
+ goto fail;
+ }
+
+ if (ret_msg->result == -EIRMD) {
+ log_dbg("Terminated command: IRMd not in running state.");
goto fail;
}