src/pipe-args.js
hangs when cml
is called from child_process.exec
on macOS
#982
Labels
src/pipe-args.js
hangs when cml
is called from child_process.exec
on macOS
#982
The cursed
pipe-args.js
file is, again1 producing esoteric issues on kernels other than Linux: now it hangs forever on macOS when usingchild_process.exec
to runcml --version
on iterative/setup-cml#60. 🐇🕳️cml/bin/cml.js
Line 85 in 25747f6
cml/bin/cml/publish.js
Line 8 in 25747f6
cml/src/pipe-args.js
Line 21 in 25747f6
cml/src/pipe-args.js
Lines 28 to 30 in 25747f6
Calling
fs.readSync
throwsEAGAIN
when there is no data in the standard input, causing an infinite loop in macOS. A similar bug affects Windows, where reading from standard input with no data just hangsreadSync
forever.Footnotes
https://github.com/iterative/cml/pull/732#issue-1004203281 ↩
The text was updated successfully, but these errors were encountered: