Skip to content

Commit

Permalink
fixup! cmd/run: Ensure underlying container is stopped when toolbox i…
Browse files Browse the repository at this point in the history
…s killed
  • Loading branch information
halfline authored Dec 22, 2022
1 parent af0fc8b commit db770e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ func runCommand(container string,
signal := <-signalChannel

logrus.Debugf("Got signal %d, killing cgroup", signal)
cgroupFilePath := fmt.Sprintf("/proc/%d/cgroup", entryPointPID);
cgroupId, err := os.ReadFile(cgroupFilePath);
cgroupFilePath := fmt.Sprintf("/proc/%d/cgroup", entryPointPID)
cgroupId, err := os.ReadFile(cgroupFilePath)
if err != nil {
logrus.Debugf("Could not look up cgroup of container %s: %s", container, err)
return
Expand Down

0 comments on commit db770e5

Please sign in to comment.