From bc9ff8040ef8042ba858baf9c28b1825337ce4df Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 8 Jan 2006 12:28:18 +0000 Subject: fix errno handling with some magical hacks --- libc/sysdeps/linux/x86_64/clone.S | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'libc/sysdeps/linux/x86_64/clone.S') 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 -- cgit v1.2.3