Piping into Code fails if data writes delayed (fix #155341) (#156973)

This commit is contained in:
Benjamin Pasero
2022-08-03 09:41:12 +02:00
committed by GitHub
parent 8125126a03
commit f8ae10c8d0
3 changed files with 17 additions and 9 deletions
+1 -1
View File
@@ -179,7 +179,7 @@ export async function main(argv: string[]): Promise<any> {
// returns a file path where stdin input is written into (write in progress).
try {
readFromStdin(stdinFilePath, !!verbose); // throws error if file can not be written
await readFromStdin(stdinFilePath, !!verbose); // throws error if file can not be written
// Make sure to open tmp file
addArg(argv, stdinFilePath);