Skip to content

Commit c6ab85f

Browse files
committed
fix(shell): wait for stdio streams of process to close (#4651)
1 parent 2723082 commit c6ab85f

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

.yarn/versions/17a3b8fe.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
releases:
2+
"@yarnpkg/cli": patch
3+
"@yarnpkg/shell": patch
4+
5+
declined:
6+
- "@yarnpkg/plugin-compat"
7+
- "@yarnpkg/plugin-constraints"
8+
- "@yarnpkg/plugin-dlx"
9+
- "@yarnpkg/plugin-essentials"
10+
- "@yarnpkg/plugin-init"
11+
- "@yarnpkg/plugin-interactive-tools"
12+
- "@yarnpkg/plugin-nm"
13+
- "@yarnpkg/plugin-npm-cli"
14+
- "@yarnpkg/plugin-pack"
15+
- "@yarnpkg/plugin-patch"
16+
- "@yarnpkg/plugin-pnp"
17+
- "@yarnpkg/plugin-pnpm"
18+
- "@yarnpkg/plugin-stage"
19+
- "@yarnpkg/plugin-typescript"
20+
- "@yarnpkg/plugin-version"
21+
- "@yarnpkg/plugin-workspace-tools"
22+
- "@yarnpkg/builder"
23+
- "@yarnpkg/core"
24+
- "@yarnpkg/doctor"

packages/yarnpkg-shell/sources/pipe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export function makeProcess(name: string, args: Array<string>, opts: ShellOption
100100
}
101101
});
102102

103-
child.on(`exit`, code => {
103+
child.on(`close`, code => {
104104
activeChildren.delete(child);
105105

106106
if (activeChildren.size === 0) {

0 commit comments

Comments
 (0)