Merge pull request #2613 from sky5454/tmp_govet_fix
chore(isolation): fix govet shadow declaration of "err" shadows
This commit is contained in:
commit
279c496bb2
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ func postStartPlatformIsolation(cmd *exec.Cmd, isolation config.IsolationConfig,
|
||||||
|
|
||||||
info := windows.JOBOBJECT_EXTENDED_LIMIT_INFORMATION{}
|
info := windows.JOBOBJECT_EXTENDED_LIMIT_INFORMATION{}
|
||||||
info.BasicLimitInformation.LimitFlags = windows.JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE
|
info.BasicLimitInformation.LimitFlags = windows.JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE
|
||||||
if _, err := windows.SetInformationJobObject(
|
if _, err = windows.SetInformationJobObject(
|
||||||
job,
|
job,
|
||||||
windows.JobObjectExtendedLimitInformation,
|
windows.JobObjectExtendedLimitInformation,
|
||||||
uintptr(unsafe.Pointer(&info)),
|
uintptr(unsafe.Pointer(&info)),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue