Joakim Nohlgård 369267863c ethos: Avoid EOF loops on detached stdin
Add a specific case of EOF on stdin to avoid situations where the
message `error reading from stdio. res=0` is repeated forever if stdin
is not a terminal. When ethos is started as a background process with
stdin redirected to /dev/null, e.g. `ethos ... < /dev/null &`, then
reading stdin will always result in a 0 length read (EOF).
If stdin is a tty we close the program on EOF (CTRL+D in the terminal),
otherwise, we stop reading from stdin after EOF was reached, but
continue tunneling traffic as usual.
2018-01-24 08:54:40 +01:00
..
2017-06-17 17:00:55 +02:00
2017-01-12 17:31:57 +01:00
2017-07-06 23:26:56 +02:00
2017-10-10 23:14:12 +02:00
2016-04-18 13:51:05 +02:00