mirror of
https://github.com/golang/go
synced 2024-11-20 05:54:43 -07:00
Return ptrace event message when there's no error instead of
only when there's an error. R=rsc APPROVED=rsc DELTA=3 (0 added, 2 deleted, 1 changed) OCL=31650 CL=31650
This commit is contained in:
parent
ba9d697336
commit
b6e6663946
@ -521,9 +521,7 @@ func PtraceSetOptions(pid int, options int) (errno int) {
|
||||
func PtraceGetEventMsg(pid int) (msg uint, errno int) {
|
||||
var data _C_long;
|
||||
errno = ptrace(_PTRACE_GETEVENTMSG, pid, 0, uintptr(unsafe.Pointer(&data)));
|
||||
if errno != 0 {
|
||||
msg = uint(data);
|
||||
}
|
||||
msg = uint(data);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user