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

Submitted by Kirill Tkhai on Jan. 10, 2018, 2:01 p.m.

Details

Message ID 151559286664.31108.2774425655335625076.stgit@localhost.localdomain
State Accepted
Series "Introduce custom per-task service fds placement"
Headers show

Commit Message

Kirill Tkhai Jan. 10, 2018, 2:01 p.m.
Net namespace does not act on /proc/[pid] context,
so this close is completely useless.

v4: New

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

Patch hide | download patch | download mbox

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;
 }