Skip to content

Commit 05ddfc0

Browse files
authored
Merge pull request #476 from Pix4D/fix-os-kill
signals: do not try to catch uncatchable signals
2 parents 53b2ceb + 837fb71 commit 05ddfc0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ dist/
1919

2020
.DS_Store
2121

22-
# intellij idea/goland
22+
# editors
2323
.idea/
24+
.vscode/
2425

2526
# exuberant ctags
2627
tags

cmd/task/task.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ func getArgs() (tasksAndVars, cliArgs []string) {
209209

210210
func getSignalContext() context.Context {
211211
ch := make(chan os.Signal, 1)
212-
signal.Notify(ch, os.Interrupt, os.Kill, syscall.SIGTERM)
212+
signal.Notify(ch, os.Interrupt, syscall.SIGTERM)
213213
ctx, cancel := context.WithCancel(context.Background())
214214
go func() {
215215
sig := <-ch

0 commit comments

Comments
 (0)