aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor_linux.cc
diff options
context:
space:
mode:
Diffstat (limited to 'executor/executor_linux.cc')
-rw-r--r--executor/executor_linux.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/executor/executor_linux.cc b/executor/executor_linux.cc
index 9511f1d57..8fec5ac6d 100644
--- a/executor/executor_linux.cc
+++ b/executor/executor_linux.cc
@@ -119,6 +119,7 @@ void loop()
{
// Tell parent that we are ready to serve.
reply_handshake();
+ checkpoint_net_namespace();
for (int iter = 0;; iter++) {
// Create a new private work dir for this test (removed at the end of the loop).
@@ -205,8 +206,9 @@ void loop()
fail("child failed");
if (status == kErrorStatus)
error("child errored");
- remove_dir(cwdbuf);
reply_execute(0);
+ remove_dir(cwdbuf);
+ reset_net_namespace();
}
}