From 8a759683a787bf60404df27e9addcf3849c649de Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 4 Mar 2020 23:12:25 +0100 Subject: Fix SIGSEGV --- connector/external/external.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'connector') diff --git a/connector/external/external.go b/connector/external/external.go index d4a6caf..637e69e 100644 --- a/connector/external/external.go +++ b/connector/external/external.go @@ -333,8 +333,10 @@ func (ext *External) Close() { go func() { time.Sleep(1 * time.Second) - log.Info("Sending SIGKILL to external process (did not terminate within 1 second)") - ext.proc.Process.Kill() + if ext.proc != nil { + log.Info("Sending SIGKILL to external process (did not terminate within 1 second)") + ext.proc.Process.Kill() + } }() ext.proc.Wait() log.Info("External process exited") -- cgit v1.2.3