Function
writeChildStdin
(
child: ChildProcess,
stdin: string | Buffer | undefined,
)
Source from the content-addressed store, hash-verified
| 734 | } |
| 735 | |
| 736 | async function writeChildStdin( |
| 737 | child: ChildProcess, |
| 738 | stdin: string | Buffer | undefined, |
| 739 | ): Promise<void> { |
| 740 | if (!child.stdin) return; |
| 741 | if (stdin === undefined) { |
| 742 | child.stdin?.end(); |
| 743 | return; |
| 744 | } |
| 745 | await pipeline(Readable.from([stdin]), child.stdin); |
| 746 | } |
| 747 | |
| 748 | function isEpipeError(error: unknown): boolean { |
| 749 | return ( |
Tested by
no test coverage detected