You are not logged in.
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
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