Linux: Use 'umount2' as it seems more portable

In contrast to the 'umount' syscall, 'umount2' works on 32 bit and 64
bit.
This commit is contained in:
Christian Helmuth 2012-11-05 17:18:55 +01:00 committed by Norman Feske
parent 8020462748
commit d64dea51c0
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}