diff options
Diffstat (limited to 'executor')
| -rw-r--r-- | executor/common_linux.h | 3 |
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; } |
