]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
nspawn: close unneeded sockets in outer child
authorKrzesimir Nowak <krzesimir@endocode.com>
Wed, 27 May 2015 11:52:31 +0000 (13:52 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Tue, 22 Sep 2015 12:11:44 +0000 (14:11 +0200)
(David: Note, this is just a cleanup and doesn't fix any bugs)

src/nspawn/nspawn.c

index 955490b752b637ffb4ded187fecfbc8afe466c36..8da22e9fd082fdb06982168f18a8942aa71e7b0f 100644 (file)
@@ -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;
 }