Skip to content

Commit

Permalink
fixup! Fix #61, 62: very frequent freezing of VM during teardown
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-carlborg committed Nov 20, 2023
1 parent 16fa3b8 commit d5b757f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/vm.ts
Expand Up @@ -70,7 +70,7 @@ export abstract class Vm {
core.debug(this.command.join(' '))
this.vmProcess = spawn('sudo', this.command, {
detached: true,
stdio: ['ignore', 'ignore', 'ignore']
stdio: ['ignore', 'inherit', 'inherit']
})

if (this.vmProcess.exitCode) {
Expand All @@ -79,6 +79,7 @@ export abstract class Vm {
)
}

this.vmProcess.unref()
this.ipAddress = await this.getIpAddress()
}

Expand Down

0 comments on commit d5b757f

Please sign in to comment.