diff options
| author | Alex Brainman <alex.brainman@gmail.com> | 2017-06-08 15:56:53 +1000 |
|---|---|---|
| committer | Alex Brainman <alex.brainman@gmail.com> | 2017-06-08 23:28:28 +0000 |
| commit | cfae35efa582eedb83f483b52fa35cf1269c562d (patch) | |
| tree | 6c5eba18a1528a1486e0fefbdb47f7e3ec44f857 /src/syscall/syscall_windows.go | |
| parent | 78cf0e56ce5372ed3bf81e41e4ab23f68d3eaa77 (diff) | |
| download | go-cfae35efa582eedb83f483b52fa35cf1269c562d.tar.xz | |
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>
Diffstat (limited to 'src/syscall/syscall_windows.go')
| -rw-r--r-- | src/syscall/syscall_windows.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/syscall/syscall_windows.go b/src/syscall/syscall_windows.go index 551a8c0dd3..4619ce2a2b 100644 --- a/src/syscall/syscall_windows.go +++ b/src/syscall/syscall_windows.go @@ -236,7 +236,8 @@ func NewCallbackCDecl(fn interface{}) uintptr { // syscall interface implementation for other packages -func Exit(code int) { ExitProcess(uint32(code)) } +// Implemented in ../runtime/syscall_windows.go. +func Exit(code int) func makeInheritSa() *SecurityAttributes { var sa SecurityAttributes |
