summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index cda0c4d..4962782 100644
--- a/main.c
+++ b/main.c
@@ -536,7 +536,7 @@ void run(void)
xfd = MAX(xfd, info.fd);
}
select(xfd + 1, &fds, 0, 0, to_set ? &timeout : NULL);
- if (FD_ISSET(info.fd, &fds))
+ if (info.fd != -1 && FD_ISSET(info.fd, &fds))
read_info();
}