From d64dea51c06d41932f97acbf3ef3cde64a219bf2 Mon Sep 17 00:00:00 2001 From: Christian Helmuth Date: Mon, 5 Nov 2012 17:18:55 +0100 Subject: [PATCH] Linux: Use 'umount2' as it seems more portable In contrast to the 'umount' syscall, 'umount2' works on 32 bit and 64 bit. --- base-linux/src/core/include/core_linux_syscalls.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base-linux/src/core/include/core_linux_syscalls.h b/base-linux/src/core/include/core_linux_syscalls.h index 7a4f3e5563..e39ff5b456 100644 --- a/base-linux/src/core/include/core_linux_syscalls.h +++ b/base-linux/src/core/include/core_linux_syscalls.h @@ -115,7 +115,7 @@ inline int lx_bindmount(char const *source, char const *target) inline int lx_umount(char const *target) { - return lx_syscall(SYS_umount, target); + return lx_syscall(SYS_umount2, target, 0); }