From 330c080eeb096c8657b0a526cb1e26cd330b030b Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 24 Jan 2024 14:40:25 +0900 Subject: [PATCH] core/exec-invoke: drop unused pam_pid --- src/core/exec-invoke.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/exec-invoke.c b/src/core/exec-invoke.c index 1ae766d93ed..829e094f519 100644 --- a/src/core/exec-invoke.c +++ b/src/core/exec-invoke.c @@ -1123,7 +1123,7 @@ static int setup_pam( sigset_t old_ss; int pam_code = PAM_SUCCESS, r; bool close_session = false; - pid_t pam_pid = 0, parent_pid; + pid_t parent_pid; int flags = 0; assert(name); @@ -1198,7 +1198,7 @@ static int setup_pam( parent_pid = getpid_cached(); - r = safe_fork("(sd-pam)", 0, &pam_pid); + r = safe_fork("(sd-pam)", 0, NULL); if (r < 0) goto fail; if (r == 0) { -- 2.47.3