mirror of
https://github.com/aler9/rtsp-simple-server
synced 2025-11-01 11:32:42 +08:00
close custom commands with SIGQUIT instead of SIGINT (#495)
This commit is contained in:
@@ -5,6 +5,7 @@ package externalcmd
|
||||
import (
|
||||
"os"
|
||||
"os/exec"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
func (e *Cmd) runInner() bool {
|
||||
@@ -31,7 +32,7 @@ func (e *Cmd) runInner() bool {
|
||||
|
||||
select {
|
||||
case <-e.terminate:
|
||||
cmd.Process.Signal(os.Interrupt)
|
||||
syscall.Kill(cmd.Process.Pid, syscall.SIGQUIT)
|
||||
<-cmdDone
|
||||
return false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user