summaryrefslogtreecommitdiff
path: root/src/keyevents.c
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2017-08-29 12:35:22 +0200
committerDaniel Friesel <derf@finalrewind.org>2017-08-29 12:35:22 +0200
commitcbf6925bba7c10cc662e375e1ab6cd47c3b1d481 (patch)
tree8dee45035fb6cc3f528fbec794ded4c857235de0 /src/keyevents.c
parent9e146eb61690404a33c80645fbb46b696d48d484 (diff)
Handle detaching the controlling tty from a feh process
Diffstat (limited to 'src/keyevents.c')
-rw-r--r--src/keyevents.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/keyevents.c b/src/keyevents.c
index b5c1949..2e49676 100644
--- a/src/keyevents.c
+++ b/src/keyevents.c
@@ -271,7 +271,8 @@ void feh_event_handle_stdin()
char stdin_buf[2];
KeySym keysym = NoSymbol;
if (read(STDIN_FILENO, &stdin_buf, 1) == -1) {
- weprintf("reading a command from stdin failed");
+ if (control_via_stdin)
+ weprintf("reading a command from stdin failed");
return;
}
stdin_buf[1] = '\0';