~mm-yuhu/gearmand/server-funcs

« back to all changes in this revision

Viewing changes to libgearman/client.c

  • Committer: Brian Aker
  • Date: 2009-01-07 20:08:06 UTC
  • mfrom: (70 fixes)
  • mto: (19.14.1 gearmand)
  • mto: This revision was merged to the branch mainline in revision 72.
  • Revision ID: brian@tangent.org-20090107200806-tbcmy7qnjs8b6qvp
MergeĀ fromĀ Eric.

Show diffs side-by-side

added added

removed removed

Lines of Context:
443
443
{
444
444
  gearman_options_t options;
445
445
  gearman_return_t ret;
446
 
  bool start_new= false;
447
446
 
448
447
  options= client->gearman->options;
449
448
  client->gearman->options|= GEARMAN_NON_BLOCKING;
516
515
              return ret;
517
516
            }
518
517
          }
519
 
 
520
 
          /* A connection may now be idle to start a new job, set this. */
521
 
          start_new= true;
522
518
        }
523
519
 
524
520
        /* Try reading even if POLLIN is not set, we may not have asked yet. */
597
593
      if (client->running == 0)
598
594
        break;
599
595
 
600
 
      if (client->new > 0 && start_new)
601
 
      {
602
 
        start_new= false;
 
596
      if (client->new > 0)
603
597
        continue;
604
 
      }
605
598
 
606
599
      if (options & GEARMAN_NON_BLOCKING)
607
600
      {