[Forensics-changes] [yara] 302/415: Allow to specify the number of threads while scanning directories
Hilko Bengen
bengen at moszumanska.debian.org
Thu Apr 3 05:43:17 UTC 2014
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to branch debian
in repository yara.
commit e615c8d285b73e322af8f16556f7306057dbce6a
Author: Victor Manuel Alvarez <vmalvarez at virustotal.com>
Date: Mon Dec 9 22:19:45 2013 +0100
Allow to specify the number of threads while scanning directories
---
yara.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/yara.c b/yara.c
index 1853188..ba7f1dc 100644
--- a/yara.c
+++ b/yara.c
@@ -53,6 +53,7 @@ limitations under the License.
" -g print tags.\n"\
" -m print metadata.\n"\
" -s print matching strings.\n"\
+" -p <number> use the specified <number> of threads to scan a directory.\n"\
" -l <number> abort scanning after matching a number rules.\n"\
" -a <seconds> abort scanning after a number of seconds has elapsed.\n"\
" -d <identifier>=<value> define external variable.\n"\
@@ -693,7 +694,7 @@ int process_cmd_line(
opterr = 0;
- while ((c = getopt (argc, (char**) argv, "wrnsvgma:l:t:i:d:f")) != -1)
+ while ((c = getopt (argc, (char**) argv, "wrnsvgma:l:t:i:d:p:f")) != -1)
{
switch (c)
{
@@ -810,6 +811,10 @@ int process_cmd_line(
timeout = atoi(optarg);
break;
+ case 'p':
+ threads = atoi(optarg);
+ break;
+
case '?':
if (optopt == 't')
{
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/yara.git
More information about the forensics-changes
mailing list