~ubuntu-branches/ubuntu/saucy/varnish/saucy

« back to all changes in this revision

Viewing changes to bin/varnishd/cache_backend_poll.c

  • Committer: Bazaar Package Importer
  • Author(s): Stig Sandbeck Mathisen
  • Date: 2011-03-21 10:16:07 UTC
  • mfrom: (24.1.2 experimental)
  • Revision ID: james.westby@ubuntu.com-20110321101607-528fzl583fqanas5
Tags: 2.1.5-2
ReleaseĀ forĀ unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
#include "config.h"
39
39
 
40
40
#include "svnid.h"
41
 
SVNID("$Id: cache_backend_poll.c 4534 2010-02-05 08:58:29Z phk $")
 
41
SVNID("$Id$")
42
42
 
43
43
#include <stdio.h>
44
44
#include <math.h>
478
478
        CHECK_OBJ_NOTNULL(b->probe, VBP_TARGET_MAGIC);
479
479
        vt = b->probe;
480
480
 
 
481
        b->healthy = 1;
 
482
 
481
483
        vt->stop = 1;
482
484
        AZ(pthread_cancel(vt->thread));
483
485
        AZ(pthread_join(vt->thread, &ret));
484
486
 
 
487
        b->healthy = 1;
 
488
 
485
489
        VTAILQ_REMOVE(&vbp_list, vt, list);
486
490
        b->probe = NULL;
487
491
        FREE_OBJ(vt);