Don't set errno in error case since the __syscall_ptrace call already
authordrepper <drepper>
Sat, 2 Aug 1997 20:59:06 +0000 (20:59 +0000)
committerdrepper <drepper>
Sat, 2 Aug 1997 20:59:06 +0000 (20:59 +0000)
did this.

sysdeps/unix/sysv/linux/ptrace.c

index 9f8053b..b50234d 100644 (file)
@@ -52,6 +52,5 @@ ptrace (enum __ptrace_request request, ...)
       return res;
     }
 
-  __set_errno (-res);
   return -1;
 }