---
st.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/st.c b/st.c
index bd157af..1191969 100644
--- a/st.c
+++ b/st.c
_AT_@ -3347,12 +3347,12 @@ run(void) {
FD_SET(cmdfd, &rfd);
FD_SET(xfd, &rfd);
- switch(select(MAX(xfd, cmdfd)+1, &rfd, NULL, NULL, tv) < 0) {
- case -1:
+ if(select(MAX(xfd, cmdfd)+1, &rfd, NULL, NULL, tv) < 0) {
if(errno == EINTR)
continue;
die("select failed: %s\n", SERRNO);
- default:
+ }
+ else {
if(FD_ISSET(cmdfd, &rfd)) {
ttyread();
if(blinktimeout) {
_AT_@ -3364,7 +3364,6 @@ run(void) {
if(FD_ISSET(xfd, &rfd))
xev = actionfps;
- break;
}
gettimeofday(&now, NULL);
drawtimeout.tv_sec = 0;
--
1.7.11.1
Received on Mon Sep 17 2001 - 00:00:00 CEST
This archive was generated by hypermail 2.3.0 : Mon May 06 2013 - 13:48:03 CEST