• Elias Naur's avatar
    misc/ios: fix exec wrapper locking · 1664ff96
    Elias Naur authored
    The exec wrapper lock file was opened, locked and then never used
    again, assuming it would close and unlock at process exit.
    However, the garbage collector could collect and run the *os.File
    finalizer that closes the file prematurely, rendering the lock
    ineffective.
    
    Make the lock global so that the lock is live during the entire
    execution.
    
    (Hopefully) fix the iOS builders.
    
    Change-Id: I62429e92042a0a49c4f1ea553fdb32b6ea53a43e
    Reviewed-on: https://go-review.googlesource.com/21137Reviewed-by: 's avatarDavid Crawshaw <crawshaw@golang.org>
    1664ff96
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...