c7d2a6b89e
If a SIGINT is delivered before the commands.cfg Configuration structure is initialized then when the goroutine which responds to the signal runs the commands.Cleanup() method, it panics after dereferencing a null pointer to the Configuration structure while trying to acquire the mutex that protects the struct's fs member. We can resolve this by simply testing for a nil Configuration structure pointer in the config.Cleanup() method and returning immediately in that case. |
||
---|---|---|
.. | ||
config_test.go | ||
config.go | ||
delayed_environment.go | ||
environment_test.go | ||
environment.go | ||
extension_test.go | ||
extension.go | ||
fetcher.go | ||
git_fetcher_test.go | ||
git_fetcher.go | ||
map_fetcher.go | ||
netrc_nix.go | ||
netrc_windows.go | ||
netrc.go | ||
os_fetcher.go | ||
url_config_test.go | ||
url_config.go | ||
util_nix.go | ||
util_windows.go | ||
version.go |