[uim-commit] r795 - trunk/xim

ekato at freedesktop.org ekato at freedesktop.org
Fri Mar 18 22:36:02 PST 2005


Author: ekato
Date: 2005-03-18 22:36:00 -0800 (Fri, 18 Mar 2005)
New Revision: 795

Modified:
   trunk/xim/main.cpp
Log:
* xim/main.cpp (main_loop) : Check timeout condition.


Modified: trunk/xim/main.cpp
===================================================================
--- trunk/xim/main.cpp	2005-03-19 06:19:15 UTC (rev 794)
+++ trunk/xim/main.cpp	2005-03-19 06:36:00 UTC (rev 795)
@@ -158,7 +158,9 @@
 	    if (fd_max < fd)
 		fd_max = fd;
 	}
-	select(fd_max + 1, &rfds, &wfds, NULL, &tv);
+	if ((select(fd_max + 1, &rfds, &wfds, NULL, &tv)) == 0)
+	    continue;
+
 	for (it = fd_watch_stat.begin(); it != fd_watch_stat.end(); it++) {
 	    int fd = it->first;
 	    if (FD_ISSET(fd, &rfds))



More information about the Uim-commit mailing list