[CRIU] [PATCH v4 05/19] socket: Remove useless close_pid_proc() from set_netns()

Kirill Tkhai ktkhai at virtuozzo.com
Wed Jan 10 17:01:06 MSK 2018


Net namespace does not act on /proc/[pid] context,
so this close is completely useless.

v4: New

Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
 criu/sockets.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/criu/sockets.c b/criu/sockets.c
index 07dbded58..f8504d9c5 100644
--- a/criu/sockets.c
+++ b/criu/sockets.c
@@ -772,8 +772,6 @@ int set_netns(uint32_t ns_id)
 
 	last_ns_id = ns_id;
 
-	close_pid_proc();
-
 	return 0;
 }
 



More information about the CRIU mailing list