Lines Matching refs:stream
316 const stream = stdio[i];
318 // which data can be read from a stream, e.g. being consumed on the
320 if (!stream || !stream.readable || stream[kIsUsedAsStdio]) {
323 stream.resume();
333 function getHandleWrapType(stream) {
334 if (stream instanceof Pipe) return 'pipe';
335 if (stream instanceof TTY) return 'tty';
336 if (stream instanceof TCP) return 'tcp';
337 if (stream instanceof UDP) return 'udp';
406 const stream = stdio[i];
407 if (stream.type === 'pipe') {
408 stream.handle.close();
422 const stream = stdio[i];
423 if (stream.type === 'ignore') continue;
425 if (stream.ipc) {
430 // The stream is already cloned and piped, thus stop its readable side,
431 // otherwise we might attempt to read from the stream when at the same time
433 if (stream.type === 'wrap') {
434 stream.handle.reading = false;
435 stream.handle.readStop();
436 stream._stdio.pause();
437 stream._stdio.readableFlowing = false;
438 stream._stdio._readableState.reading = false;
439 stream._stdio[kIsUsedAsStdio] = true;
443 if (stream.handle) {
444 stream.socket = createSocket(this.pid !== 0 ?
445 stream.handle : null, i > 0);
449 stream.socket.on('close', () => {