-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stdio: cannot write to stdin after #1233 #9206
Comments
sounds like a bug |
@bnoordhuis does it actually work on windows? IMO, writing to stdin sounds quite ridiculous... It may not even support writes at all. |
Are we actually talking about writing to fd |
The node stream. File descriptor 0 in the example accepts writes just fine, it's a bidirectional UNIX socket. |
That's what I was thinking. I'm not sure if we care much about that odd Windows caveat then since I don't think it is possible to hit from this codepath anyways. |
@bnoordhuis is it always such thing, though? Is it logical to allow writes to it? |
It's not typical but it's also not unheard of in the UNIX world. The current restriction is artificial. All other things being equal, it's better to lift it. |
@bnoordhuis Should this remain open? |
Just tried it again, it's still unfixed. I've added 'good first contribution' and 'help wanted' labels. |
Would love to try tackling this @bnoordhuis, this is my first open source contribution though so I would love some help with getting started. Can you give me an idea of what I should be looking at/doing to get this done? |
@nikshepsvn It was introduced in commit 9ae1a61 but that code has since migrated to If you want a real quick test, FWIW, I'm also fine with closing this. I since learned that python also rejects writes to |
I second @bnoordhuis's recommendation to close this as Ruby and Python both open STDIN in read-only mode. |
I'll close this out given the lack of activity in terms of making it actually happen and the latest feedback from @bnoordhuis and @JackDanger. If anyone still wants this though feel free to reopen or create an issue/PR. |
Continuing from #9201 (comment). The change from #1233 makes it impossible to write to stdin, something that works in v0.10 and v0.12.
Test case:
Trace:
cc @indutny
The text was updated successfully, but these errors were encountered: