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 14a92db commit 3db6366Copy full SHA for 3db6366
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