[systemd-devel] [PATCH 2/7] nspawn: Close unneeded sockets in outer child

Krzesimir Nowak krzesimir at endocode.com
Mon Jun 1 08:28:58 PDT 2015


---
 src/nspawn/nspawn.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
index bd7532c..28b79c4 100644
--- a/src/nspawn/nspawn.c
+++ b/src/nspawn/nspawn.c
@@ -4348,6 +4348,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;
 }
-- 
2.1.0



More information about the systemd-devel mailing list