|author||He Gao <email@example.com>||Fri Sep 09 21:01:32 2022 +0000|
|committer||He Gao <firstname.lastname@example.org>||Fri Sep 09 22:25:08 2022 +0000|
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 <email@example.com> Cloud-Build: GCB Service account <firstname.lastname@example.org> Reviewed-by: Robert Kolchmeyer <email@example.com> Reviewed-by: Arnav Kansal <firstname.lastname@example.org>
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.