forked from hashicorp/terraform-ls
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Catch OS agnostic interrupt signal (hashicorp#755)
As per docs (https://pkg.go.dev/os/signal#hdr-Windows) os.Interrupt is an OS-agnostic "signal" as opposed to syscall.SIGINT which is Unix-only. This should enable us to catch interrupts on Windows too, therefore do more graceful shutdowns and also write CPU profile.
- Loading branch information
1 parent
58e442f
commit 58e0e79
Showing
2 changed files
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters