You are not logged in.

#1 2023-03-01 20:30:06

szsdk
Member
Registered: 2019-11-08
Posts: 3

Get Input/output error from ioctl after updating today

After updating my system today, I started getting an error with the ioctl system call in a short script that I use to put a string into the shell prompt. The script is based on the method described in this Unix Stack Exchange page: [Construct a command by putting a string into a TTY](https://unix.stackexchange.com/question … -tty/48221).

Here's a minimal example that reproduces the error:
```python
import fcntl
import sys
import termios
fcntl.ioctl(sys.stdin, termios.TIOCSTI, b'b')
```
The error message I'm seeing is:
```
OSError: [Errno 5] Input/output error
```
I tried with root. But it does not help

Offline

#2 2023-03-01 20:34:56

loqs
Member
Registered: 2014-03-06
Posts: 18,796

Re: Get Input/output error from ioctl after updating today

https://lore.kernel.org/linux-hardening … omium.org/ LEGACY_TIOCSTI is not enabled in the Arch kernel packages.
Edit:
https://bugs.archlinux.org/task/77745

Last edited by loqs (2023-03-06 21:02:55)

Offline

Board footer

Powered by FluxBB