summaryrefslogtreecommitdiff
path: root/src/nspawn/nspawn.c
diff options
context:
space:
mode:
authorKrzesimir Nowak <krzesimir@endocode.com>2015-05-27 13:52:31 +0200
committerDavid Herrmann <dh.herrmann@gmail.com>2015-09-22 14:11:44 +0200
commit327e26d6892c2ba6ab1c8c00d4dda8aa65ecab38 (patch)
tree519592555779d6e98e0a59dc8cca95a4b828ebdf /src/nspawn/nspawn.c
parentd960371482d75711e61896f27ea0d3740ea69fe0 (diff)
nspawn: close unneeded sockets in outer child
(David: Note, this is just a cleanup and doesn't fix any bugs)
Diffstat (limited to 'src/nspawn/nspawn.c')
-rw-r--r--src/nspawn/nspawn.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
index 955490b752..8da22e9fd0 100644
--- a/src/nspawn/nspawn.c
+++ b/src/nspawn/nspawn.c
@@ -2787,6 +2787,8 @@ static int outer_child(
}
pid_socket = safe_close(pid_socket);
+ kmsg_socket = safe_close(kmsg_socket);
+ rtnl_socket = safe_close(rtnl_socket);
return 0;
}