[bwm-tools-devel] COMMIT - r19 - trunk/bwm_monitor
Brought to you by:
nkukard
From: SVN C. <sv...@li...> - 2005-01-03 06:30:12
|
Author: nkukard Date: 2005-01-03 08:29:39 +0200 (Mon, 03 Jan 2005) New Revision: 19 Modified: trunk/bwm_monitor/bwm_monitor.c Log: * Giang Hu <fre...@gm...> - Fixed timeout to 250ms, added break out of select if we fail Modified: trunk/bwm_monitor/bwm_monitor.c =================================================================== --- trunk/bwm_monitor/bwm_monitor.c 2005-01-02 15:45:54 UTC (rev 18) +++ trunk/bwm_monitor/bwm_monitor.c 2005-01-03 06:29:39 UTC (rev 19) @@ -82,7 +82,7 @@ // Set our timeout to half a second timeout.tv_sec = 0; - timeout.tv_usec = 500; + timeout.tv_usec = 250000; read_fds = master_fds; @@ -127,6 +127,11 @@ wrefresh(win); } + else + { // socket has been closed or error occured + // FIXME - set error message + break; + } // Check if we got a keypress if (wgetch(win) != ERR) |