We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56b6e7d commit a53f801Copy full SHA for a53f801
src/client/stdio.ts
@@ -225,6 +225,12 @@ export class StdioClientTransport implements Transport {
225
await Promise.race([closePromise, new Promise(resolve => setTimeout(resolve, 1_000).unref())]);
226
227
if (processToClose.exitCode === null) {
228
+ try {
229
+ processToClose.stdin?.end();
230
+ } catch {
231
+ // ignore errors in trying to close stdin
232
+ }
233
+
234
try {
235
processToClose.kill('SIGKILL');
236
} catch {
0 commit comments