commit | 8e2a800d50b204773387a760ea0293f7c3f4cdb1 | [log] [tgz] |
---|---|---|
author | He Gao <hegao@google.com> | Fri Sep 09 21:01:32 2022 +0000 |
committer | He Gao <hegao@google.com> | Fri Sep 09 22:25:08 2022 +0000 |
tree | dcb176c9fe3f8a3b0b53b4283828a93cce58fc9a | |
parent | 7fef61dd9ecafe02e7ca3078e50d4656c0dbfa35 [diff] |
cos-gpu-installer: reference locked file in the main function Sending https requests might trigger Go garbage collection and close unrefernced locked file so that the lock is released. This results in allowing two installer instances running in one VM. This CL makes the main function reference the locked file and explicitly close it so that the lock won't be accidentally released. BUG=b/237702412 TEST=Repeatedly trying to start a second installer during the driver installation process. Change-Id: I2654c2d280eebc64815849820a31aef774ad96fa Reviewed-on: https://cos-review.googlesource.com/c/cos/tools/+/36867 Tested-by: He Gao <hegao@google.com> Cloud-Build: GCB Service account <228075978874@cloudbuild.gserviceaccount.com> Reviewed-by: Robert Kolchmeyer <rkolchmeyer@google.com> Reviewed-by: Arnav Kansal <rnv@google.com>
This is a repository of various tools developed for Container-Optimized OS. Examples include cos-gpu-installer, cos-toolbox, etc.
See CONTRIBUTING.md for how to contribute.