Skip to content

Commit e80376c

Browse files
committed
runtime: ignore closeonexec ret val on openbsd/arm
Fixes #16641 Updates #11041 Change-Id: I087208a486f535d74135591b2c9a73168cf80e1a Reviewed-on: https://go-review.googlesource.com/27490 Run-TryBot: Josh Bleecher Snyder <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent 355d7fa commit e80376c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/runtime/sys_openbsd_arm.s

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,15 +353,13 @@ TEXT runtime·kevent(SB),NOSPLIT,$8
353353
MOVW R0, ret+24(FP)
354354
RET
355355

356-
// int32 runtime·closeonexec(int32 fd);
356+
// func closeonexec(fd int32)
357357
TEXT runtime·closeonexec(SB),NOSPLIT,$0
358358
MOVW fd+0(FP), R0 // arg 1 - fd
359359
MOVW $2, R1 // arg 2 - cmd (F_SETFD)
360360
MOVW $1, R2 // arg 3 - arg (FD_CLOEXEC)
361361
MOVW $92, R12 // sys_fcntl
362362
SWI $0
363-
RSB.CS $0, R0
364-
MOVW R0, ret+4(FP)
365363
RET
366364

367365
TEXT ·publicationBarrier(SB),NOSPLIT,$-4-0

0 commit comments

Comments
 (0)