]> Cypherpunks repositories - gostls13.git/commitdiff
darwin, freebsd: ignore write failure (during print, panic)
authorRuss Cox <rsc@golang.org>
Thu, 16 Dec 2010 20:46:56 +0000 (12:46 -0800)
committerRuss Cox <rsc@golang.org>
Thu, 16 Dec 2010 20:46:56 +0000 (12:46 -0800)
The other operating systems already ignore write failures.

Fixes #1279.

R=r, r2
CC=golang-dev
https://golang.org/cl/3723041

src/pkg/runtime/darwin/386/sys.s
src/pkg/runtime/darwin/amd64/sys.s
src/pkg/runtime/freebsd/386/sys.s
src/pkg/runtime/freebsd/amd64/sys.s

index a2067e42cf6386bf111f12a614944fb9485c9e17..79bbfb68bf481517fe8ec8f451a7d22bb69fe6b7 100644 (file)
@@ -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
index 2f0a4bf3e64ddf1aa5df91cb1c68fa34e53de3c4..05dbc7b93b6700106cb6796400288b4bc673799b 100644 (file)
@@ -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)
index 2670fc1e77260a4ba854cbd996655bf47c411397..7110e6924e0daaa02d071e393cad03ca6f9b4543 100644 (file)
@@ -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
index 0f8a8a8a978c077c2b55f656124c21b659ff5172..b9cf3832dd55df6b2a0f94a907dbacf6a458b034 100644 (file)
@@ -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