~ubuntu-branches/ubuntu/dapper/clamav/dapper-backports

« back to all changes in this revision

Viewing changes to clamd/thrmgr.c

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-12-01 12:10:43 UTC
  • mfrom: (9.8.4 natty)
  • Revision ID: james.westby@ubuntu.com-20101201121043-k3czd1pwgkib2935
Tags: 0.96.4+dfsg-1ubuntu1~dapper1
* Source backport for Dapper:
  - Drop -T -W from apparmor_parser calls in clamav-daemon and freshclam
    postinsts since it is not supported in early apparmor versions
  - Drop deny rule in freshclam apparmor profile since deny is not
    supported in Hardy's apparmor
  - Drop dh_lintian from debian/rules and adjust version of debhelper
    build-dep
  - Drop build-dep and libclamav-dev depends on non-existent libtommath-dev
  - Changed Section to 'utils' for clamav-dbg package
  - Drop versioning of lsb-base depends
  - Revert lsb status changes from maintainer scripts
  - Ignore test suite errors on hppa
  - Build-depend on libltdl3-dev instead of libltdl-dev
  - Build with GCC 3.4 to work around known bugs in 4.1 (results in no llvm
    support on Dapper, but this is not a regression for that release)
  - Drop po template file comments to work around bugs in the Dapper build
    system
  - Switch back to older dpkg-dev Source-Version style
  - Restore build-dep on dpkg-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
186
186
                 (unsigned)queue->item_count);
187
187
}
188
188
 
189
 
int thrmgr_printstats(int f)
 
189
int thrmgr_printstats(int f, char term)
190
190
{
191
191
        struct threadpool_list *l;
192
192
        unsigned cnt, pool_cnt = 0;
301
301
                mdprintf(f,"MEMSTATS: heap N/A mmap N/A used N/A free N/A releasable N/A pools %u pools_used %.3fM pools_total %.3fM\n",
302
302
                         pool_cnt, pool_used/(1024*1024.0), pool_total/(1024*1024.0));
303
303
        }
304
 
        mdprintf(f,"END\n");
 
304
        mdprintf(f,"END%c", term);
305
305
        pthread_mutex_unlock(&pools_lock);
306
306
        return 0;
307
307
}