diff --git a/pkg/vtpm/swtpm-vtpm/src/main.go b/pkg/vtpm/swtpm-vtpm/src/main.go index d6f3b7a764..ff4d552c51 100644 --- a/pkg/vtpm/swtpm-vtpm/src/main.go +++ b/pkg/vtpm/swtpm-vtpm/src/main.go @@ -29,7 +29,7 @@ import ( const ( swtpmPath = "/usr/bin/swtpm" maxInstances = 10 - maxPidWaitTime = 1 //seconds + maxPidWaitTime = 5 //seconds ) var ( @@ -216,7 +216,7 @@ func handleLaunch(w http.ResponseWriter, r *http.Request) { // check if it's still alive. if it is alive, refuse to launch a new // instance with the same id as this might corrupt the state. if p, ok := pids[id]; ok { - // don't trust the p, it might be a pid resused. + // don't trust the p, it might be a pid reused. pidPath := fmt.Sprintf(swtpmPidPath, id) if _, err := os.Stat(pidPath); err == nil { pid, err := getSwtpmPid(pidPath, 0)