tree-wide: Migrate to pidref_safe_fork()
Let's migrate all remaining callers of safe_fork() to pidref_safe_fork() and get rid of safe_fork().
This commit is contained in:
committed by
DaanDeMeyer
parent
e6703a9aa4
commit
52ecf376fa
@@ -1416,7 +1416,7 @@ static int setup_pam(
|
||||
|
||||
parent_pid = getpid_cached();
|
||||
|
||||
r = safe_fork("(sd-pam)", 0, NULL);
|
||||
r = pidref_safe_fork("(sd-pam)", /* flags= */ 0, /* ret= */ NULL);
|
||||
if (r < 0)
|
||||
goto fail;
|
||||
if (r == 0) {
|
||||
|
||||
Reference in New Issue
Block a user