]> Cypherpunks repositories - gostls13.git/commit
runtime: change tfork behaviour to unbreak openbsd/mips64
authorJoel Sing <joel@sing.id.au>
Thu, 17 Nov 2022 01:51:56 +0000 (12:51 +1100)
committerJoel Sing <joel@sing.id.au>
Sat, 19 Nov 2022 03:33:26 +0000 (03:33 +0000)
commite84ce0802dac6d5a780acc2f54113b55f49f4b07
tree52c50390fe1b53dd3d8ec595227b5a4a45703bb8
parentf4f8397fed02b612c36c425fc9c5dce32408e21b
runtime: change tfork behaviour to unbreak openbsd/mips64

Currently, tfork on openbsd/mips64 returns the thread ID on success and
a negative error number on error. In CL#447175, newosproc was changed
to assume that a non-zero value is an error - return zero on success to
match this expectation.

Change-Id: I955efad49b149146165eba3d05fe40ba75caa098
Reviewed-on: https://go-review.googlesource.com/c/go/+/451257
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Joedian Reid <joedian@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Joel Sing <joel@sing.id.au>
src/runtime/sys_openbsd_mips64.s