fix: tart backend stops VM to early (#76)

This commit is contained in:
ChristopherHX 2025-03-29 13:39:47 +01:00 committed by GitHub
parent fcf370fcd1
commit a1935498a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -101,7 +101,8 @@ func (vm *VM) Start(ctx context.Context, config Config, _ *Env, customDirectoryM
runArgs = append(runArgs, vm.id)
cmd := exec.CommandContext(ctx, tartCommandName, runArgs...)
// Use Background context, because we want to keep the VM running
cmd := exec.CommandContext(context.Background(), tartCommandName, runArgs...)
common.Logger(ctx).Debug(strings.Join(runArgs, " "))