Fix userspace clone by clobbering all variables on clone
This commit is contained in:
parent
ce50faf7ca
commit
dc87afd2ac
1 changed files with 35 additions and 8 deletions
|
|
@ -110,7 +110,7 @@ pub fn chdir(path: &str) -> Result<usize> {
|
|||
}
|
||||
|
||||
pub unsafe fn clone(flags: usize) -> Result<usize> {
|
||||
syscall1(SYS_CLONE, flags)
|
||||
syscall1_clobber(SYS_CLONE, flags)
|
||||
}
|
||||
|
||||
pub fn close(fd: usize) -> Result<usize> {
|
||||
|
|
|
|||
Loading…
Reference in a new issue