aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor_linux.cc
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-01-24 19:28:36 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-01-27 17:08:43 +0100
commit08146b1a84f975e2cc1007242b4202dc5cc0e5c5 (patch)
treead9f57cfbed4b9008223359d0f765a2b6a27a209 /executor/executor_linux.cc
parent5d7477249ba074bbdc9ffbf80314397dbe90e886 (diff)
sys/linux: extend netfilter descriptions
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();
}
}