diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-01-08 12:28:18 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-01-08 12:28:18 +0000 |
commit | bc9ff8040ef8042ba858baf9c28b1825337ce4df (patch) | |
tree | 4fc3f9fd5bbc27a1d8d0e55021afc02d298affb9 /libc/sysdeps/linux/x86_64/clone.S | |
parent | a83c32e036222fc33cd99fd9f97b067b5e6442dd (diff) |
fix errno handling with some magical hacks
Diffstat (limited to 'libc/sysdeps/linux/x86_64/clone.S')
-rw-r--r-- | libc/sysdeps/linux/x86_64/clone.S | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/libc/sysdeps/linux/x86_64/clone.S b/libc/sysdeps/linux/x86_64/clone.S index 4a7e96500..0ae999722 100644 --- a/libc/sysdeps/linux/x86_64/clone.S +++ b/libc/sysdeps/linux/x86_64/clone.S @@ -57,9 +57,9 @@ __clone: /* Sanity check arguments. */ movq $-EINVAL,%rax testq %rdi,%rdi /* no NULL function pointers */ - jz __error + jz __syscall_error testq %rsi,%rsi /* no NULL stack pointers */ - jz __error + jz __syscall_error /* Insert the argument onto the new stack. */ subq $16,%rsi @@ -79,7 +79,7 @@ __clone: syscall testq %rax,%rax - jl __error + jl __syscall_error jz .Lthread_start .Lpseudo_end: @@ -111,9 +111,6 @@ __clone: movq %rax, %rdi call _exit_internal -__error: - jmp __syscall_error - .size __clone,.-__clone .weak clone |