MCPcopy Create free account
hub / github.com/agent-tower/core / getDefaultTerminalShell

Function getDefaultTerminalShell

packages/server/src/utils/process-launch.ts:279–294  ·  view source on GitHub ↗
(
  platform: NodeJS.Platform = process.platform,
  env: NodeJS.ProcessEnv = process.env
)

Source from the content-addressed store, hash-verified

277 process.on(signal, () => {
278 killTree(signal);
279 scheduleForceKill();
280 });
281});
282
283if (mode === 'pipe-file') {
284 const [stdinFile, ...args] = rest;
285 cleanupTarget = stdinFile;
286 let stdinStream = null;
287 let stdinStreamClosed = false;
288 let finishingWithChildResult = false;
289
290 function isBrokenPipeError(error) {
291 const code = error && error.code;
292 return code === 'EPIPE'
293 || code === 'ECONNRESET'
294 || code === 'ERR_STREAM_DESTROYED'
295 || code === 'ERR_STREAM_WRITE_AFTER_END';
296 }
297

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected