Control: tags -1 + patch
Control: severity -1 minor
* Fabian Greffrath <fab...@greffrath.com>, 2015-01-17, 13:00:
If you redirect stdin to /dev/null, unace just hangs forever:
To be honest, I am not really sure what to do about this. :/
This code is bizarre... But the attached patch should do the trick.
But anyway, it's not a big deal, since it shouldn't affect normal users.
I adjusted severity accordingly.
--
Jakub Wilk
--- a/source/apps/exe/input/lin.c
+++ b/source/apps/exe/input/lin.c
@@ -40,6 +40,10 @@ BOOL APPS_EXE_INPUT_KeyHit(void)
fd_set fds;
struct timeval tv;
+ if (!isatty(0))
+ {
+ return 0;
+ }
FD_ZERO(&fds);
FD_SET(0, &fds);
tv.tv_sec = 0;