Skip to content

Commit 1ab2a4e

Browse files
pvoicursc
authored andcommitted
[release-branch.go1.8] runtime: fix usleep by correctly setting nanoseconds parameter for pselect6
Fixes #21518 Change-Id: Idd67e3f0410d0ce991b34dcc0c8f15e0d5c529c9 Reviewed-on: https://go-review.googlesource.com/56850 Reviewed-by: Ian Lance Taylor <[email protected]> Reviewed-by: Austin Clements <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-on: https://go-review.googlesource.com/70838 Run-TryBot: Russ Cox <[email protected]>
1 parent 25be91a commit 1ab2a4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/sys_linux_386.s

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ TEXT runtime·usleep(SB),NOSPLIT,$8
100100
MOVL AX, 0(SP)
101101
MOVL $1000, AX // usec to nsec
102102
MULL DX
103-
MOVL DX, 4(SP)
103+
MOVL AX, 4(SP)
104104

105105
// pselect6(0, 0, 0, 0, &ts, 0)
106106
MOVL $308, AX

0 commit comments

Comments
 (0)