From 87b8fed3af1f11a87e7c31e04f680443aea661fc Mon Sep 17 00:00:00 2001 From: Jan Dubois Date: Tue, 11 May 2021 10:24:47 -0700 Subject: [PATCH] Fix indentation Signed-off-by: Jan Dubois --- pkg/containerrun/containerrun.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pkg/containerrun/containerrun.go b/pkg/containerrun/containerrun.go index 4edbfc3..45f17f4 100644 --- a/pkg/containerrun/containerrun.go +++ b/pkg/containerrun/containerrun.go @@ -278,16 +278,16 @@ func handlePacket( } func stopProcesses(processRegistry *ProcessRegistry, errors chan<- error) { - log.Debugln("sending SIGTERM") - for _, err := range processRegistry.SignalAll(syscall.SIGTERM) { - errors <- err - } - // bpm would send a SIGQUIT signal to dump the stack before sending SIGKILL, - // but there doesn't seem to be a point to be doing it in this context. - processRegistry.timer = time.AfterFunc(sigtermTimeout, func() { - log.Debugln("timeout SIGTERM") - processRegistry.KillAll() - }) + log.Debugln("sending SIGTERM") + for _, err := range processRegistry.SignalAll(syscall.SIGTERM) { + errors <- err + } + // bpm would send a SIGQUIT signal to dump the stack before sending SIGKILL, + // but there doesn't seem to be a point to be doing it in this context. + processRegistry.timer = time.AfterFunc(sigtermTimeout, func() { + log.Debugln("timeout SIGTERM") + processRegistry.KillAll() + }) } func startProcesses(