tree-wide: port various places to use TAKE_PID()
This commit is contained in:
+1
-2
@@ -2248,8 +2248,7 @@ static int setup_private_users(uid_t ouid, gid_t ogid, uid_t uid, gid_t gid) {
|
||||
if (n != 0) /* on success we should have read 0 bytes */
|
||||
return -EIO;
|
||||
|
||||
r = wait_for_terminate_and_check("(sd-userns)", pid, 0);
|
||||
pid = 0;
|
||||
r = wait_for_terminate_and_check("(sd-userns)", TAKE_PID(pid), 0);
|
||||
if (r < 0)
|
||||
return r;
|
||||
if (r != EXIT_SUCCESS) /* If something strange happened with the child, let's consider this fatal, too */
|
||||
|
||||
Reference in New Issue
Block a user