Skip to content
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

Redirection of stdin results in panic on unrwrap() #77

Open
OdysseusGE opened this issue Jan 21, 2018 · 1 comment
Open

Redirection of stdin results in panic on unrwrap() #77

OdysseusGE opened this issue Jan 21, 2018 · 1 comment

Comments

@OdysseusGE
Copy link

OdysseusGE commented Jan 21, 2018

For example echo foo | ./target/debug/liner_test gives:

thread 'main' panicked at 'called Result::unwrap() on an Err value: Os { code: 25, kind: Other, message: "Inappropriate ioctl for device" }', libcore/result.rs:916:5

The problematic unwrap is at src/context.rs:95, which calls let stdout = stdout().into_raw_mode().unwrap();

This issue also causes redox-os/ion to panic with a redirected stdin.
See also: https://github.com/ticki/termion/issues/39

@P-E-Meunier
Copy link

We're having the same problem on Pijul.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants