-
Notifications
You must be signed in to change notification settings - Fork 30k
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
tty: do not add shutdown
method to handle
#1073
Conversation
UV_TTY does not support `uv_shutdown()` so adding this method in StreamBase will cause an `abort()` in C land. Fix: nodejs#1068
@bnoordhuis please review |
LGTM |
Nah, I'm still getting a error on windows. @zxqfox was it working on windows on initial io.js release? |
Hm... this test appears to be passing for me on windows machine. cc @rvagg |
Erm, better @piscisaureus |
@indutny I can't check this for now but as I remember — yes. |
@@ -160,7 +160,8 @@ class StreamBase : public StreamResource { | |||
public: | |||
enum Flags { | |||
kFlagNone = 0x0, | |||
kFlagHasWritev = 0x1 | |||
kFlagHasWritev = 0x1, | |||
kFlagNoShutdown = 0x2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're probably doing this so you don't have to update too much code but shouldn't it be opt-in with kFlagHasShutdown
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TTY seems to be in minority here, as other do support it. I guess I'd rather do it this way if this is not something serious for you?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not serious, no, just a little incongruent.
Guess this is some mingw thing, landing. Thank you! |
@indutny I've just installed 1.3.0 and |
Ok, I can reproduce this thing without this patch, and can't do it with this patch. Not sure why CI is not happy :( |
@bnoordhuis LGTY? |
LGTM |
UV_TTY does not support `uv_shutdown()` so adding this method in StreamBase will cause an `abort()` in C land. Fix: #1068 PR-URL: #1073 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
Thanks, landed in 3446ff4! |
Thanks! Will wait for build ;-) I have a couple of bugs on windows... But need fresh build. |
The test included in here is the sole remaining persistently failing windows test in #1005 (see also: #1068 (comment))
|
@Fishrock123 Did you mean that you getting this error with 1.5? Or just in testing env on CI? |
My windows partition isn't setup for dev stuff; that's on the CI. (and io.js latest: 1.5.1) |
@Fishrock123 Thanks. Just probably something is stuck on the CI side. Not sure atm ;-( |
UV_TTY does not support
uv_shutdown()
so adding this method inStreamBase will cause an
abort()
in C land.Fix: #1068