-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3.1.2 Set the PTY fd to be non-blocking
We have gone back and forth a couple of times, but we _do_ need to set this FD to be non-blocking. Otherwise node will fully consume one I/O thread for each PTY, and node only has four of those. This change makes the controller fd (the one the parent process reads from / writes to) as non-blocking for node. Also, now that the controller fd is non-blocking, we need to pass it through Node's TTY machinery so that it is properly handled. Because of that, Rust is no longer on the hook for closing the FD, since ownership is fully transferred to Node.
- Loading branch information
Showing
7 changed files
with
163 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@replit/ruspty", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"main": "dist/wrapper.js", | ||
"types": "dist/wrapper.d.ts", | ||
"author": "Szymon Kaliski <[email protected]>", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.