Fix SIGSEGV
This commit is contained in:
parent
3288cea61c
commit
8a759683a7
1 changed files with 4 additions and 2 deletions
6
connector/external/external.go
vendored
6
connector/external/external.go
vendored
|
@ -333,8 +333,10 @@ func (ext *External) Close() {
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
time.Sleep(1 * time.Second)
|
time.Sleep(1 * time.Second)
|
||||||
log.Info("Sending SIGKILL to external process (did not terminate within 1 second)")
|
if ext.proc != nil {
|
||||||
ext.proc.Process.Kill()
|
log.Info("Sending SIGKILL to external process (did not terminate within 1 second)")
|
||||||
|
ext.proc.Process.Kill()
|
||||||
|
}
|
||||||
}()
|
}()
|
||||||
ext.proc.Wait()
|
ext.proc.Wait()
|
||||||
log.Info("External process exited")
|
log.Info("External process exited")
|
||||||
|
|
Loading…
Reference in a new issue