Skip to content

Commit 79c68a0

Browse files
committed
terminate and kill - no leftover processes
1 parent ce7b131 commit 79c68a0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

internal/proc/src/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,8 @@ export function spawn(
112112
// there's nothing to dispose since the process already exitted (error or not)
113113
return Promise.resolve();
114114
}
115-
if (child.pid) {
116-
await terminate(child.pid);
117-
}
115+
await terminate(child.pid!);
116+
child.kill();
118117
await waitForExit;
119118
},
120119
};

0 commit comments

Comments
 (0)