Skip to content
Snippets Groups Projects
Commit 25bfebc2 authored by Simon Rose's avatar Simon Rose
Browse files

Remove 'inappropriate ioctl for device' warning

This only came up if I ran, for example
```
$ echo exit | iocsh
```

See https://unix.stackexchange.com/a/26782/445931. This assume bash,
which is safe, and fixes the issue.
parent 06641947
No related branches found
No related tags found
1 merge request!154Remove 'inappropriate ioctl for device' warning
Pipeline #169513 passed
......@@ -12,7 +12,7 @@ from pathlib import Path
@atexit.register
def graceful_shutdown() -> None:
print("\nExiting e3 IOC shell")
os.system("stty sane")
os.system("[[ $- == *i* ]] && stty sane")
class TemporaryStartupScript:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment