Skip to content

Fix stdin/stdout/stderr not being replaceable#1839

Closed
linouxis9 wants to merge 1 commit intobytecodealliance:masterfrom
linouxis9:master
Closed

Fix stdin/stdout/stderr not being replaceable#1839
linouxis9 wants to merge 1 commit intobytecodealliance:masterfrom
linouxis9:master

Conversation

@linouxis9
Copy link
Contributor

OsOther cannot be used for file descriptors representing a file or a directory.

if file_type == types::Filetype::RegularFile || file_type == types::Filetype::Directory {

As such, an OsFile should instead directly be used.

Before this PR, and since #1561, it was not possible to replace stdin/stdout/stderr with an user-provided File.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant