Changeset 7ca5d3e
- Timestamp:
- Oct 27, 2009, 3:08:19 PM (15 years ago)
- Branches:
- master, release-1.10, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- ad0dedd
- Parents:
- a01ed7c
- git-author:
- Alejandro R. Sedeño <asedeno@mit.edu> (10/27/09 15:02:36)
- git-committer:
- Alejandro R. Sedeño <asedeno@mit.edu> (10/27/09 15:08:19)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
select.c
r6fc40a7 r7ca5d3e 458 458 459 459 if(ret > 0) { 460 /* Merge fd_sets and clear AIM FDs. */ 461 for(i = 0; i <= max_fd; i++) { 462 /* Merge all interesting FDs into one set, since we have a 463 single dispatch per FD. */ 460 /* AIM HACK: process all AIM events at once. */ 461 for(i = 0; !aim_done && i <= max_fd; i++) { 464 462 if (FD_ISSET(i, &r) || FD_ISSET(i, &w) || FD_ISSET(i, &e)) { 465 /* AIM HACK: no separate dispatch, just process here if 466 needed, and only once per run through. */ 467 if (!aim_done && (FD_ISSET(i, &aim_rfds) || FD_ISSET(i, &aim_wfds))) { 463 if (FD_ISSET(i, &aim_rfds) || FD_ISSET(i, &aim_wfds)) { 468 464 owl_process_aim(); 469 465 aim_done = 1; 470 466 } 471 else { 472 FD_SET(i, &r); 473 } 474 } 475 } 476 /* NOTE: the same dispatch function is called for both exceptional 477 and read ready FDs. */ 467 } 468 } 478 469 owl_select_io_dispatch(&r, &w, &e, max_fd); 479 470 }
Note: See TracChangeset
for help on using the changeset viewer.