mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 02:15:43 +03:00
Comments
This commit is contained in:
@@ -120,7 +120,7 @@ type ExecCommand struct {
|
||||
ResourceLimits bool
|
||||
|
||||
// Cgroup marks whether we put the process in a cgroup. Setting this field
|
||||
// doesn't enforce resource limits. To enforce limits, set ResoruceLimits.
|
||||
// doesn't enforce resource limits. To enforce limits, set ResourceLimits.
|
||||
// Using the cgroup does allow more precise cleanup of processes.
|
||||
BasicProcessCgroup bool
|
||||
}
|
||||
|
||||
@@ -265,6 +265,9 @@ func TestRawExecDriver_Start_Kill_Wait(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// This test creates a process tree such that without cgroups tracking the
|
||||
// processes cleanup of the children would not be possible. Thus the test
|
||||
// asserts that the processes get killed properly when using cgroups.
|
||||
func TestRawExecDriver_Start_Kill_Wait_Cgroup(t *testing.T) {
|
||||
tu.ExecCompatible(t)
|
||||
t.Parallel()
|
||||
|
||||
Reference in New Issue
Block a user