Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Dubois <[email protected]>
  • Loading branch information
jandubois committed May 11, 2021
1 parent 2776822 commit 87b8fed
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions pkg/containerrun/containerrun.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 87b8fed

Please sign in to comment.