aboutsummaryrefslogtreecommitdiffstats
path: root/executor
diff options
context:
space:
mode:
authorAndrey Konovalov <andreyknvl@google.com>2016-11-29 19:02:58 +0100
committerAndrey Konovalov <andreyknvl@google.com>2016-11-29 19:02:58 +0100
commit11e1b430a81b1367979fed22eeaca95f303b8f9f (patch)
tree17df9221a757e106f4f7414ddf92abb97765751f /executor
parent6d413cab8f4b25e9e0982f7771358da68779a126 (diff)
csourse: emit remove_dir only when needed
Diffstat (limited to 'executor')
-rw-r--r--executor/common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/executor/common.h b/executor/common.h
index 3e8f258d4..8df0ee1ae 100644
--- a/executor/common.h
+++ b/executor/common.h
@@ -538,6 +538,7 @@ static int do_sandbox_namespace()
}
#endif
+#if defined(SYZ_EXECUTOR) || defined(SYZ_REPEAT)
// One does not simply remove a directory.
// There can be mounts, so we need to try to umount.
// Moreover, a mount can be mounted several times, so we need to try to umount in a loop.
@@ -614,6 +615,7 @@ retry:
exitf("rmdir(%s) failed", dir);
}
}
+#endif
#if defined(SYZ_EXECUTOR) || defined(SYZ_REPEAT)
static uint64_t current_time_ms()