]> Cypherpunks repositories - gostls13.git/commit
syscall: make windows Exit call runtime.exit
authorAlex Brainman <alex.brainman@gmail.com>
Thu, 8 Jun 2017 05:56:53 +0000 (15:56 +1000)
committerAlex Brainman <alex.brainman@gmail.com>
Thu, 8 Jun 2017 23:28:28 +0000 (23:28 +0000)
commitcfae35efa582eedb83f483b52fa35cf1269c562d
tree6c5eba18a1528a1486e0fefbdb47f7e3ec44f857
parent78cf0e56ce5372ed3bf81e41e4ab23f68d3eaa77
syscall: make windows Exit call runtime.exit

Both runtime.exit and syscall.Exit call Windows ExitProcess.
But recently (CL 34616) runtime.exit was changed to ignore
Windows CreateThread errors if ExitProcess is called.

This CL adjusts syscall.Exit to do the same.

Fixes #18253 (maybe)

Change-Id: I6496c31b01e7c7d73b69c0b2ae33ed7fbe06736b
Reviewed-on: https://go-review.googlesource.com/45115
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/syscall_windows.go
src/syscall/syscall_windows.go