Skip to content

Commit

Permalink
Fix issue with process.stdin (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
kse3hi authored Feb 8, 2024
1 parent 1e16c4f commit 9fc7dbe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 3 additions & 1 deletion src/modules/exec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 9fc7dbe

Please sign in to comment.