opticsmon: Return errors from monitor_wait_loop() in monitor_mode()

Don't ignore the return value of monitor_wait_loop() but instead forward
it to the caller.

Fixes: c34adb9cab ("opticsmon: Introduce opticsmon tool")
Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com>
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Niklas Schnelle
2026-04-16 13:08:27 +02:00
committed by Jan Höppner
parent 905c3921af
commit 1f339a9e7e
+1 -1
View File
@@ -381,7 +381,7 @@ static int monitor_mode(struct opticsmon_ctx *ctx)
goto close_timerfd;
}
monitor_wait_loop(ctx, sigfd, timerfd);
ret = monitor_wait_loop(ctx, sigfd, timerfd);
link_mon_nl_waitfd_destroy(&ctx->lctx);
util_fmt_exit();