--- embedaddon/mpd/src/console.c 2012/02/21 23:32:47 1.1.1.1 +++ embedaddon/mpd/src/console.c 2013/07/22 08:44:29 1.1.1.2 @@ -376,7 +376,7 @@ ConsoleSessionReadEvent(int type, void *cookie) goto out; Perror("CONSOLE: Error while reading"); } else { - if (cs->fd == 0) + if (cs->fd == 0 && isatty(cs->fd)) goto out; Log(LG_ERR, ("CONSOLE: Connection closed by peer")); }