/[qemacs]/qemacs/unix.c
ViewVC logotype

Diff of /qemacs/unix.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by chqrlie, Wed May 4 19:27:36 2005 UTC revision 1.3 by chqrlie, Wed May 11 15:12:14 2005 UTC
# Line 198  static inline int check_timers(int max_d Line 198  static inline int check_timers(int max_d
198      cur_time = get_clock_ms();      cur_time = get_clock_ms();
199      timeout = cur_time + max_delay;      timeout = cur_time + max_delay;
200      pt = &first_timer;      pt = &first_timer;
201      for(;;) {      for (;;) {
202          ti = *pt;          ti = *pt;
203          if (ti == NULL)          if (ti == NULL)
204              break;              break;
# Line 255  static void url_block(void) Line 255  static void url_block(void)
255      /* call each handler */      /* call each handler */
256      if (ret > 0) {      if (ret > 0) {
257          uh = url_handlers;          uh = url_handlers;
258          for(i = 0;i <= url_fdmax; i++) {          for (i = 0;i <= url_fdmax; i++) {
259              if (FD_ISSET(i, &rfds)) {              if (FD_ISSET(i, &rfds)) {
260                  uh->read_cb(uh->read_opaque);                  uh->read_cb(uh->read_opaque);
261                  call_bottom_halves();                  call_bottom_halves();
# Line 269  static void url_block(void) Line 269  static void url_block(void)
269      }      }
270            
271      /* handle terminated children */      /* handle terminated children */
272      for(;;) {      for (;;) {
273          if (list_empty(&pid_handlers))          if (list_empty(&pid_handlers))
274              break;              break;
275          pid = waitpid(-1, &status, WNOHANG);          pid = waitpid(-1, &status, WNOHANG);
# Line 289  void url_main_loop(void (*init)(void *op Line 289  void url_main_loop(void (*init)(void *op
289  {  {
290      url_block_reset();      url_block_reset();
291      init(opaque);      init(opaque);
292      for(;;) {      for (;;) {
293          if (url_exit_request)          if (url_exit_request)
294              break;              break;
295          url_block();          url_block();

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26