+ FD_ZERO(&rfd);
+ FD_SET(cmdfd, &rfd);
+ /*
+ * Just wait a bit so it isn't disturbing the
+ * user and the system is able to write something.
+ */
+ drawtimeout.tv_sec = 0;
+ drawtimeout.tv_usec = 5;
+ if(select(cmdfd+1, &rfd, NULL, NULL, &drawtimeout) < 0) {
+ if(errno == EINTR)
+ continue;
+ die("select failed: %s\n", SERRNO);
+ }