-
Notifications
You must be signed in to change notification settings - Fork 16
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
Error "Inappropriate ioctl for device" on macOS #7
Comments
Came across this thread with some info: https://developer.apple.com/forums/thread/734230 Taking inspiration from the main reply regarding opening the slave fds before setting
|
@ryanwebber what did you end up using? I couldn't find an alternative with async. |
I didn't find an alternative, I just used a version of this repo with the above patch applied to temporarily unblock myself. |
FWIW I am facing the same issue but when calling pub fn main() {
let pty = pty_process::blocking::Pty::new().unwrap();
pty.resize(pty_process::Size::new(24, 80)).unwrap();
} produces
|
On my macOS machine there's an error when marking the pts fd as nonblocking here:
pty-process/src/sys.rs
Line 53 in 74c223d
Steps to reproduce:
Logs:
Note: I'm not sure if this is actually unique to macOS. I haven't been able to find much info on this error with respect to pty or nonblocking fds unfortunately, but as I keep looking I'll post anything I find.
The text was updated successfully, but these errors were encountered: