Skip to content

Commit db770e5

Browse files
authored
fixup! cmd/run: Ensure underlying container is stopped when toolbox is killed
1 parent af0fc8b commit db770e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cmd/run.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,8 @@ func runCommand(container string,
273273
signal := <-signalChannel
274274

275275
logrus.Debugf("Got signal %d, killing cgroup", signal)
276-
cgroupFilePath := fmt.Sprintf("/proc/%d/cgroup", entryPointPID);
277-
cgroupId, err := os.ReadFile(cgroupFilePath);
276+
cgroupFilePath := fmt.Sprintf("/proc/%d/cgroup", entryPointPID)
277+
cgroupId, err := os.ReadFile(cgroupFilePath)
278278
if err != nil {
279279
logrus.Debugf("Could not look up cgroup of container %s: %s", container, err)
280280
return

0 commit comments

Comments
 (0)