From: Shreenidhi Shedi Date: Sat, 4 Jun 2022 10:18:09 +0000 (+0530) Subject: polkit: explicitly ignore fd_wait_for_event()'s return value X-Git-Tag: v252-rc1~867^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a30c9e71765015eab260cad2f1a1e92423e87e23;p=thirdparty%2Fsystemd.git polkit: explicitly ignore fd_wait_for_event()'s return value Fixes: CID#1469718 --- 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]);