diff options
Diffstat (limited to 'src/util/scheduler.c')
-rw-r--r-- | src/util/scheduler.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/util/scheduler.c b/src/util/scheduler.c index 16f65b457..dc428e592 100644 --- a/src/util/scheduler.c +++ b/src/util/scheduler.c | |||
@@ -560,6 +560,13 @@ GNUNET_SCHEDULER_run (GNUNET_SCHEDULER_Task task, void *task_cls) | |||
560 | timeout = GNUNET_TIME_UNIT_ZERO; | 560 | timeout = GNUNET_TIME_UNIT_ZERO; |
561 | } | 561 | } |
562 | ret = GNUNET_NETWORK_socket_select (rs, ws, NULL, timeout); | 562 | ret = GNUNET_NETWORK_socket_select (rs, ws, NULL, timeout); |
563 | if (ret == GNUNET_SYSERR) | ||
564 | { | ||
565 | if (errno == EINTR) | ||
566 | continue; | ||
567 | GNUNET_log_strerror (GNUNET_ERROR_TYPE_ERROR, "select"); | ||
568 | break; | ||
569 | } | ||
563 | #ifndef MINGW | 570 | #ifndef MINGW |
564 | if (GNUNET_NETWORK_fdset_handle_isset (rs, pr)) | 571 | if (GNUNET_NETWORK_fdset_handle_isset (rs, pr)) |
565 | { | 572 | { |
@@ -584,13 +591,6 @@ GNUNET_SCHEDULER_run (GNUNET_SCHEDULER_Task task, void *task_cls) | |||
584 | _("Looks like we're busy waiting...\n")); | 591 | _("Looks like we're busy waiting...\n")); |
585 | sleep (1); /* mitigate */ | 592 | sleep (1); /* mitigate */ |
586 | } | 593 | } |
587 | if (ret == GNUNET_SYSERR) | ||
588 | { | ||
589 | if (errno == EINTR) | ||
590 | continue; | ||
591 | GNUNET_log_strerror (GNUNET_ERROR_TYPE_ERROR, "select"); | ||
592 | break; | ||
593 | } | ||
594 | check_ready (&sched, rs, ws); | 594 | check_ready (&sched, rs, ws); |
595 | run_ready (&sched); | 595 | run_ready (&sched); |
596 | } | 596 | } |