You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@lute/process: implement stdin support for default and inherit stdio kinds. (#977)
I went on a wild goose chase for a few days thinking there was something
wrong with `io.read` where it seemed like it was closing the file
descriptor for `stdin` on the first read call, and subsequent calls
would break. It turns out the actual underlying issue is that I'm always
invoking my local version of `lute` by doing a `luthier run` call, and
this revealed an issue with the process library itself: we were always
setting `stdio` to `UV_IGNORE` meaning we were always closing out the
stdin handle for subprocesses, regardless of stdio kind setting. This
resulted in a simple program that takes an input giving EOF with any
invocation through a `luthier` executed copy of `lute`. The fix is
straightforward, we should set up the `0` fd, not just `1` and `2`, in
our process library.
0 commit comments