mirror of
https://github.com/golang/go
synced 2024-11-20 10:04:45 -07:00
darwin, freebsd: ignore write failure (during print, panic)
The other operating systems already ignore write failures. Fixes #1279. R=r, r2 CC=golang-dev https://golang.org/cl/3723041
This commit is contained in:
parent
aa78cec69c
commit
b3e8fdce8d
@ -31,8 +31,6 @@ TEXT runtime·exit1(SB),7,$0
|
||||
TEXT runtime·write(SB),7,$0
|
||||
MOVL $4, AX
|
||||
INT $0x80
|
||||
JAE 2(PC)
|
||||
CALL runtime·notok(SB)
|
||||
RET
|
||||
|
||||
TEXT runtime·mmap(SB),7,$0
|
||||
|
@ -36,8 +36,6 @@ TEXT runtime·write(SB),7,$0
|
||||
MOVL 24(SP), DX // arg 3 count
|
||||
MOVL $(0x2000000+4), AX // syscall entry
|
||||
SYSCALL
|
||||
JCC 2(PC)
|
||||
CALL runtime·notok(SB)
|
||||
RET
|
||||
|
||||
// void gettime(int64 *sec, int32 *usec)
|
||||
|
@ -58,8 +58,6 @@ TEXT runtime·exit1(SB),7,$-4
|
||||
TEXT runtime·write(SB),7,$-4
|
||||
MOVL $4, AX
|
||||
INT $0x80
|
||||
JAE 2(PC)
|
||||
CALL runtime·notok(SB)
|
||||
RET
|
||||
|
||||
TEXT runtime·notok(SB),7,$0
|
||||
|
@ -63,8 +63,6 @@ TEXT runtime·write(SB),7,$-8
|
||||
MOVL 24(SP), DX // arg 3 count
|
||||
MOVL $4, AX
|
||||
SYSCALL
|
||||
JCC 2(PC)
|
||||
CALL runtime·notok(SB)
|
||||
RET
|
||||
|
||||
TEXT runtime·gettime(SB), 7, $32
|
||||
|
Loading…
Reference in New Issue
Block a user