Skip to content

Commit 65717b2

Browse files
pvoicuaclements
authored andcommitted
[release-branch.go1.9] runtime: fix usleep by correctly setting nanoseconds parameter for pselect6
Fixes #21518 Change-Id: Idd67e3f0410d0ce991b34dcc0c8f15e0d5c529c9 Reviewed-on: https://go-review.googlesource.com/56891 Run-TryBot: Austin Clements <[email protected]> Reviewed-by: Petrica Voicu <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent 048c9cf commit 65717b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/sys_linux_386.s

Lines changed: 1 addition & 1 deletion
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)