]> Cypherpunks repositories - gostls13.git/commit
runtime: use __tfork() syscall on openbsd
authorJoel Sing <jsing@google.com>
Wed, 25 Apr 2012 14:08:02 +0000 (00:08 +1000)
committerJoel Sing <jsing@google.com>
Wed, 25 Apr 2012 14:08:02 +0000 (00:08 +1000)
commit689d5b91631ccfaee9b85aa25a06df55769e299e
tree7e4e1208eeef38f244a36befe425b2fae9325b49
parentfdce27f7b8f671e3399d2c116dbd15ec2e612af2
runtime: use __tfork() syscall on openbsd

Switch from using the rfork() syscall on OpenBSD, to the __tfork()
syscall.  The __tfork() syscall is the preferred way of creating
system threads and the rfork() syscall has recently been removed.

Note: this will break compatibility with OpenBSD releases prior to 5.1.

R=golang-dev, bradfitz, devon.odell, rsc
CC=golang-dev
https://golang.org/cl/6037048
src/pkg/runtime/sys_openbsd_386.s
src/pkg/runtime/sys_openbsd_amd64.s
src/pkg/runtime/thread_openbsd.c