From a30c9e71765015eab260cad2f1a1e92423e87e23 Mon Sep 17 00:00:00 2001 From: Shreenidhi Shedi Date: Sat, 4 Jun 2022 15:48:09 +0530 Subject: [PATCH] polkit: explicitly ignore fd_wait_for_event()'s return value Fixes: CID#1469718 --- src/shared/spawn-polkit-agent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/spawn-polkit-agent.c b/src/shared/spawn-polkit-agent.c index 7fa75081783..3abb02d03e7 100644 --- a/src/shared/spawn-polkit-agent.c +++ b/src/shared/spawn-polkit-agent.c @@ -56,7 +56,7 @@ int polkit_agent_open(void) { log_error_errno(r, "Failed to fork TTY ask password agent: %m"); else /* Wait until the agent closes the fd */ - fd_wait_for_event(pipe_fd[0], POLLHUP, USEC_INFINITY); + (void) fd_wait_for_event(pipe_fd[0], POLLHUP, USEC_INFINITY); safe_close(pipe_fd[0]); -- 2.47.3