8000 Merge pull request #476 from symfony-cli/kill-signal-removal · symfony-cli/symfony-cli@915e1ad · GitHub
[go: up one dir, main page]

Skip to content

Commit 915e1ad

Browse files
authored
Merge pull request #476 from symfony-cli/kill-signal-removal
Remove kill signal as it cannot be trapped
2 parents a73df18 + 192427f commit 915e1ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

local/runner.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func (r *Runner) Run() error {
108108
cmdExitChan := make(chan error) // receives command exit status, allow to cmd.Wait() in non-blocking way
109109
restartChan := make(chan bool) // receives requests to restart the command
110110
sigChan := make(chan os.Signal, 1)
111-
signal.Notify(sigChan, os.Kill, os.Interrupt, syscall.SIGQUIT, syscall.SIGTERM)
111+
signal.Notify(sigChan, os.Interrupt, syscall.SIGQUIT, syscall.SIGTERM)
112112
defer signal.Stop(sigChan)
113113

114114
if len(r.pidFile.Watched) > 0 {

0 commit comments

Comments
 (0)
0