fix select errors due to exploding fdnum n
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@605 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
29f8af6451
commit
5ed20d8028
3
xwin.c
3
xwin.c
@ -1272,13 +1272,14 @@ xwin_process_events(void)
|
||||
int
|
||||
ui_select(int rdp_socket)
|
||||
{
|
||||
int n = (rdp_socket > g_x_socket) ? rdp_socket : g_x_socket;
|
||||
int n;
|
||||
fd_set rfds, wfds;
|
||||
struct timeval tv;
|
||||
BOOL s_timeout = False;
|
||||
|
||||
while (True)
|
||||
{
|
||||
n = (rdp_socket > g_x_socket) ? rdp_socket : g_x_socket;
|
||||
/* Process any events already waiting */
|
||||
if (!xwin_process_events())
|
||||
/* User quit */
|
||||
|
Loading…
Reference in New Issue
Block a user