diff options
author | Austin Clements <aclements@csail.mit.edu> | 2009-07-14 18:05:29 -0700 |
---|---|---|
committer | Austin Clements <aclements@csail.mit.edu> | 2009-07-14 18:05:29 -0700 |
commit | 489018522e4f433d3439f5033e6e9d916b60d192 (patch) | |
tree | 43693064a4bac429bbc488539fff16c5cac1d7a4 | |
parent | 3096fdbf1d997fff483c8748324690c46d03adc0 (diff) | |
download | golang-489018522e4f433d3439f5033e6e9d916b60d192.tar.gz |
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
-rw-r--r-- | src/pkg/syscall/syscall_linux.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pkg/syscall/syscall_linux.go b/src/pkg/syscall/syscall_linux.go index 70b34b46d..ac77942a3 100644 --- a/src/pkg/syscall/syscall_linux.go +++ b/src/pkg/syscall/syscall_linux.go @@ -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; } |