Fixed that select wouldn't consider xcb events
This commit is contained in:
parent
a90bab94fb
commit
15384083a0
1 changed files with 3 additions and 1 deletions
|
@ -103,7 +103,9 @@ main(int argc, char *argv[])
|
|||
FD_SET(g_sock_fd, &file_descriptors);
|
||||
FD_SET(g_dpy_fd, &file_descriptors);
|
||||
|
||||
select(max_fd, &file_descriptors, NULL, NULL, NULL);
|
||||
if (!(select(max_fd, &file_descriptors, NULL, NULL, NULL) > 0)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (FD_ISSET(g_sock_fd, &file_descriptors)) {
|
||||
int client_fd;
|
||||
|
|
Loading…
Add table
Reference in a new issue