diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | main.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -VERSION = 1.1 +VERSION = git-20130402 PREFIX = /usr/local MANPREFIX = $(PREFIX)/share/man @@ -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(); } |