Török Edvin
b8edbb880d
clamd/thrmgr.c: fix valgrind warning (bb #1184 )
...
unit_tests: add more valgrind tests, add a reload and a multiscan test (bb #1092 )
git-svn: trunk@4175
18 years ago
Török Edvin
4a0bd44290
Multiscan queues a lot of scan tasks. If thread_idle wasn't zero when multiscan
...
started queueing, it will only spawn at most one thread, and keep queueing
without spawning more threads (because threads_idle now non-zero), but the idle
thread doesn't get a chance to pick up the tasks.
Fix this by testing whether we have enough idle threads to pick up the items in
the work queue. If there aren't then spawn some more until max limit is reached,
or we have enough idle threads to handle all tasks in the queue.
git-svn: trunk@4066
18 years ago
Török Edvin
4270f93bcc
(bb #913 , #916 )
...
18 years ago
Tomasz Kojm
5a66732fdc
clamd: revert patch from bb#1028 (bb#1113)
...
git-svn: trunk@4029
18 years ago
aCaB
cc4232a3b1
add some missing checks for pthread api calls - bb#384
...
git-svn: trunk@4004
18 years ago
Tomasz Kojm
600a7f2b08
configure, clamd: fix compilation error on systems without pthread_yield() (bb#1058)
...
git-svn: trunk@3910
18 years ago
Tomasz Kojm
22e4ec878a
clamd/thrmgr.c: move some msgs to debug (bb#1028)
...
git-svn: trunk@3882
18 years ago
Tomasz Kojm
04ba76d2cb
minimize memory fragmentation after db reload (bb#1028)
...
git-svn: trunk@3873
18 years ago
Török Edvin
d6df9ffb5a
use pthread_cond_* instead of usleep() in MULTISCAN (bb #758 )
...
enable entconv by default
others.c: fix compiler warning
regex_list.c: remove unused code, because a better solution is scheduled for 0.94 (bb #725 )
git-svn: trunk@3627
18 years ago
aCaB
2455584143
sync to trunk
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/newlimits@3599 77e5149b-7576-45b1-b177-96237e5ba77b
18 years ago
Török Edvin
efac2f09b7
don't ignore SIGBUS, SIGFPE, SIGILL, and SIGSEGV.
...
POSIX says the behaviour is undefined if they are ignored.
(on HP-UX behaviour was: hang)
make BIGSTACK the default on HPUX
git-svn: trunk@3593
18 years ago
Tomasz Kojm
8ca8a18e2d
drop shared/memory.[ch]
...
git-svn: trunk@2874
19 years ago
Sven Strickroth
a99111f050
remove old CVS-stuff and make the repository look more like SVN
...
git-svn: trunk@2755
19 years ago
Tomasz Kojm
fc83da8244
remove some gcc warnings
...
git-svn: trunk@2701
19 years ago
Tomasz Kojm
7b04a82cef
change stack size at the right place (closes bug#103)
...
git-svn: trunk@2462
19 years ago
Tomasz Kojm
c3b33e5a6e
fix possible memory leaks and improve handling of memory allocation errors (closes bug#75)
...
git-svn: trunk@2455
19 years ago
Tomasz Kojm
85d7001f33
free(threadpool->queue) in thrmgr_destroy, thanks to Edwin
...
git-svn: trunk@2392
19 years ago
Tomasz Kojm
67118e923d
apply w32 patches from NJH
...
git-svn: trunk@2245
20 years ago
Tomasz Kojm
bd8603aae2
code cleanup
...
git-svn: trunk@2235
20 years ago
Tomasz Kojm
48b7b4a747
update GPL headers with new address for FSF
...
git-svn: trunk@1901
20 years ago
Tomasz Kojm
079229d60d
fix some compiler warnings, patch by Stefan Huehner <stefan*huehner.org>
...
git-svn: trunk@1778
20 years ago
Tomasz Kojm
1593523e68
revert the queue limit patch
...
git-svn: trunk@1637
21 years ago
Tomasz Kojm
6d5c43a147
limit the internal queue of requests to MaxConnectionQueueLength
...
git-svn: trunk@1625
21 years ago
Tomasz Kojm
9fa6473439
fix mutex handling
...
git-svn: trunk@1269
21 years ago
Tomasz Kojm
afb48b2813
Big cleanup
...
git-svn: trunk@448
22 years ago
Tomasz Kojm
10b04232a4
added missing new line characters in logg()
...
git-svn: trunk@420
22 years ago
Trog
96f656e65d
*** empty log message ***
...
git-svn: trunk@344
22 years ago
Tomasz Kojm
e6974fa9a3
*** empty log message ***
...
git-svn: trunk@342
22 years ago
Trog
52e8d3c608
thrmgr: new clean reimplementation
...
git-svn: trunk@338
22 years ago
Tomasz Kojm
a9ebff44df
fixed problem with cli_rmdirs() and some small cleanups
...
git-svn: trunk@315
22 years ago
Tomasz Kojm
c238ac42c6
clamd: integrated new thread manager
...
git-svn: trunk@296
22 years ago