diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-11-26 17:19:04 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-11-26 17:19:04 +0100 |
| commit | f42a3165e8b527a81865870f74865c1cd99b7196 (patch) | |
| tree | 5ee1d82bb3e1a42d678f8559bfc4d3061e7e3f2f /vis.c | |
| parent | ab65ab5d027e97ead372264a6ecfd3ac642299ba (diff) | |
| download | vis-f42a3165e8b527a81865870f74865c1cd99b7196.tar.gz vis-f42a3165e8b527a81865870f74865c1cd99b7196.tar.xz | |
vis: re-open /dev/tty read-writeable
libtermkey's initialization routine tries to write to the underlying
file descriptor which fails with EBADF if it is opened read only.
This was a problem in the terminal restore code called after a shell
command is executed.
It should fix the following:
$ echo foo | vis - > bar
:!/bin/sh
exit
where before vis would no longer accept any input.
Diffstat (limited to 'vis.c')
0 files changed, 0 insertions, 0 deletions
