core/exec-invoke: drop unused pam_pid

This commit is contained in:
Yu Watanabe
2024-01-24 14:40:25 +09:00
parent c917a80701
commit 330c080eeb

View File

@@ -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) {