]> Cypherpunks repositories - gostls13.git/commit
misc/ios: ensure deferred cleanup functions are run even on error
authorElias Naur <elias.naur@gmail.com>
Wed, 2 May 2018 17:48:04 +0000 (19:48 +0200)
committerElias Naur <elias.naur@gmail.com>
Thu, 3 May 2018 15:15:12 +0000 (15:15 +0000)
commit8b9ecbf374d2c8be1423c24a235d6e3ff8bafe15
tree433ba03c96c0b17e3fd966ea78c87f9e173094d7
parent78cb5d7a68f994978b1520baf724c8a7008a97c0
misc/ios: ensure deferred cleanup functions are run even on error

log.Fatal exits the process and doesn't allow deferred functions
to run. Extract log.Fatal calls to main where all deferred functions
have completed.

For the iOS builder.

Change-Id: Id1ef9955bed19944a819d6137a611d6ecbe624a6
Reviewed-on: https://go-review.googlesource.com/110955
Run-TryBot: Elias Naur <elias.naur@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
misc/ios/go_darwin_arm_exec.go