mirror of
https://github.com/go-task/task.git
synced 2026-06-27 14:44:19 +00:00
Merge pull request #476 from Pix4D/fix-os-kill
signals: do not try to catch uncatchable signals
This commit is contained in:
@@ -209,7 +209,7 @@ func getArgs() (tasksAndVars, cliArgs []string) {
|
||||
|
||||
func getSignalContext() context.Context {
|
||||
ch := make(chan os.Signal, 1)
|
||||
signal.Notify(ch, os.Interrupt, os.Kill, syscall.SIGTERM)
|
||||
signal.Notify(ch, os.Interrupt, syscall.SIGTERM)
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
go func() {
|
||||
sig := <-ch
|
||||
|
||||
Reference in New Issue
Block a user