diff options
| author | Russ Cox <rsc@golang.org> | 2015-06-22 12:32:05 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2015-06-24 21:50:39 +0000 |
| commit | a9e536442ed3e6ecd57ec24cc187557152b6d655 (patch) | |
| tree | d647275ae59c9efed93fc693b825fd85d2401d3e /src/runtime/sys_linux_386.s | |
| parent | c68f2f89963cfc9d10b43d33603b6fa588d56f9d (diff) | |
| download | go-a9e536442ed3e6ecd57ec24cc187557152b6d655.tar.xz | |
runtime: set m.procid always on Linux
For debuggers and other program inspectors.
Fixes #9914.
Change-Id: I670728cea28c045e6eaba1808c550ee2f34d16ff
Reviewed-on: https://go-review.googlesource.com/11341
Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/runtime/sys_linux_386.s')
| -rw-r--r-- | src/runtime/sys_linux_386.s | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/runtime/sys_linux_386.s b/src/runtime/sys_linux_386.s index f5cfb644c9..98a1a0ef6d 100644 --- a/src/runtime/sys_linux_386.s +++ b/src/runtime/sys_linux_386.s @@ -96,6 +96,12 @@ TEXT runtime·usleep(SB),NOSPLIT,$8 CALL *runtime·_vdso(SB) RET +TEXT runtime·gettid(SB),NOSPLIT,$0-4 + MOVL $224, AX // syscall - gettid + CALL *runtime·_vdso(SB) + MOVL AX, ret+0(FP) + RET + TEXT runtime·raise(SB),NOSPLIT,$12 MOVL $224, AX // syscall - gettid CALL *runtime·_vdso(SB) |
