nspawn: also close uid shift socket in the parent

We should really close all parent sides of our child/parent socket
pairs.
This commit is contained in:
Lennart Poettering 2015-09-08 01:22:46 +02:00
parent 76d448820e
commit 82116c4329

View file

@ -3359,6 +3359,7 @@ int main(int argc, char *argv[]) {
kmsg_socket_pair[1] = safe_close(kmsg_socket_pair[1]);
rtnl_socket_pair[1] = safe_close(rtnl_socket_pair[1]);
pid_socket_pair[1] = safe_close(pid_socket_pair[1]);
uid_shift_socket_pair[1] = safe_close(uid_shift_socket_pair[1]);
/* Wait for the outer child. */
r = wait_for_terminate_and_warn("namespace helper", pid, NULL);