mirror of
https://github.com/systemd/systemd.git
synced 2025-01-07 21:18:41 +03:00
core/exec-invoke: drop unused pam_pid
This commit is contained in:
parent
c917a80701
commit
330c080eeb
@ -1123,7 +1123,7 @@ static int setup_pam(
|
|||||||
sigset_t old_ss;
|
sigset_t old_ss;
|
||||||
int pam_code = PAM_SUCCESS, r;
|
int pam_code = PAM_SUCCESS, r;
|
||||||
bool close_session = false;
|
bool close_session = false;
|
||||||
pid_t pam_pid = 0, parent_pid;
|
pid_t parent_pid;
|
||||||
int flags = 0;
|
int flags = 0;
|
||||||
|
|
||||||
assert(name);
|
assert(name);
|
||||||
@ -1198,7 +1198,7 @@ static int setup_pam(
|
|||||||
|
|
||||||
parent_pid = getpid_cached();
|
parent_pid = getpid_cached();
|
||||||
|
|
||||||
r = safe_fork("(sd-pam)", 0, &pam_pid);
|
r = safe_fork("(sd-pam)", 0, NULL);
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
goto fail;
|
goto fail;
|
||||||
if (r == 0) {
|
if (r == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user