~ubuntu-branches/ubuntu/feisty/clamav/feisty-backports

« back to all changes in this revision

Viewing changes to clamd/server-th.c

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2008-04-29 14:10:40 UTC
  • mfrom: (19.3.8 feisty-updates) (19.2.8 hardy)
  • Revision ID: james.westby@ubuntu.com-20080429141040-b6ppzv3noxseq1nt
Tags: 0.92.1~dfsg2-1.1~feisty1
Automated backport upload; no source changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
#include "clamuko.h"
51
51
#include "others.h"
52
52
#include "shared.h"
 
53
#include "libclamav/others.h"
53
54
 
54
55
#ifndef C_WINDOWS
55
56
#define closesocket(s)  close(s)
260
261
        int max_threads, i, ret = 0;
261
262
        unsigned int options = 0;
262
263
        threadpool_t *thr_pool;
 
264
        char timestr[32];
263
265
#ifndef C_WINDOWS
264
266
        struct sigaction sigact;
265
267
#endif
538
540
        }
539
541
#if !defined(C_WINDOWS) && !defined(C_BEOS)
540
542
        if(new_sd != -1 && fstat(socketd, &st_buf) == -1) {
541
 
            logg("!fstat(): socket descriptor gone\n");
542
543
            memmove(socketds, socketds + 1, sizeof(socketds[0]) * nsockets);
543
544
            nsockets--;
544
545
            if(!nsockets) {
677
678
    }
678
679
 
679
680
    time(&current_time);
680
 
    logg("--- Stopped at %s", ctime(&current_time));
 
681
    logg("--- Stopped at %s", cli_ctime(&current_time, timestr, sizeof(timestr)));
681
682
 
682
683
    return ret;
683
684
}