mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-01 23:20:55 +00:00
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:
parent
8020462748
commit
d64dea51c0
@ -115,7 +115,7 @@ inline int lx_bindmount(char const *source, char const *target)
|
|||||||
|
|
||||||
inline int lx_umount(char const *target)
|
inline int lx_umount(char const *target)
|
||||||
{
|
{
|
||||||
return lx_syscall(SYS_umount, target);
|
return lx_syscall(SYS_umount2, target, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user