-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[NODERAWFS] Revert #18163 #22393
[NODERAWFS] Revert #18163 #22393
Conversation
167507d
to
4472431
Compare
library_tty.js
for stdio streams
I'm inclined to perhaps revisit #18163. It seems to me that if one uses |
This reverts commit c614fa5.
8b5b56d
to
69b7076
Compare
I agree, let's revert #18163. In retrospect, it seems that The latest revision of this PR reverts #18163 in a trivial way. |
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.
Can you update the PR title to refer to the change you are reverting?
src/library_noderawfs.js
Outdated
@@ -55,6 +54,12 @@ addToLibrary({ | |||
var mode = NODEFS.getMode(path); | |||
return { path, node: { id: st.ino, mode, node_ops: NODERAWFS, path }}; | |||
}, | |||
createStandardStreams() { | |||
FS.createStream({ nfd: 0, position: 0, path: '', flags: 0, tty: false, seekable: false }, 0); |
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.
Note that I set tty: false
here to ensure that issue #22264 remains resolved.
$ emcc ioctl_test.c -lnodefs.js -lnoderawfs.js -sEXIT_RUNTIME
$ node ./a.out.js
pc-kaw
a.out.js: /dev/stdin not a tty: Not a tty
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.
(I also set it for stdout and stderr, btw)
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.
Seems reasonable for now, but we should probably add a TODO there, and we should really be setting tty
based on the underlying node isatty
call for each descriptor.
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.
library_tty.js
for stdio streams
Sure, updated to |
This reverts commit c614fa5.
Here's a standalone reproducer:
Before:
After:
x.png