Signed-off-by: Vitezslav Samel <vitezslav(a)samel.cz>
---
src/packet.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/packet.c b/src/packet.c
index 841a573..20f20bf 100644
--- a/src/packet.c
+++ b/src/packet.c
@@ -103,7 +103,7 @@ int packet_get(int fd, struct pkt_hdr *pkt, int *ch, WINDOW *win)
nfds++;
/* Monitor stdin only if in interactive, not daemon mode. */
- if (!daemonized) {
+ if (ch && !daemonized) {
pfds[1].fd = 0;
pfds[1].events = POLLIN;
nfds++;
--
1.7.8.4