aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_linux.h
diff options
context:
space:
mode:
Diffstat (limited to 'executor/common_linux.h')
-rw-r--r--executor/common_linux.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/executor/common_linux.h b/executor/common_linux.h
index 9e7d9717d..7356499de 100644
--- a/executor/common_linux.h
+++ b/executor/common_linux.h
@@ -5024,7 +5024,8 @@ static void check_leaks(void)
static const char* setup_binfmt_misc()
{
- if (mount(0, "/proc/sys/fs/binfmt_misc", "binfmt_misc", 0, 0)) {
+ // EBUSY means it's already mounted here.
+ if (mount(0, "/proc/sys/fs/binfmt_misc", "binfmt_misc", 0, 0) && errno != EBUSY) {
debug("mount(binfmt_misc) failed: %d\n", errno);
return NULL;
}