diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 2e65348b..606de2fe 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -12,7 +12,7 @@ # # SPDX-License-Identifier: Apache-2.0 -FROM ghcr.io/eclipse-velocitas/devcontainer-base-images/python:v0.1 +FROM ghcr.io/eclipse-velocitas/devcontainer-base-images/python:v0.2 # Force dapr to use localhost traffic ENV DAPR_HOST_IP="127.0.0.1" diff --git a/src/modules/exec.ts b/src/modules/exec.ts index ddd8b9d2..cfe22af5 100644 --- a/src/modules/exec.ts +++ b/src/modules/exec.ts @@ -72,7 +72,9 @@ export async function awaitSpawn( }; process.on('SIGINT', sigintCallback); ptyProcess.onExit((code) => { - process.stdin.unref(); + if (process.stdin) { + process.stdin.unref(); + } ptyProcess.kill(); resolveFunc(code); projectCache.write();