Added timeout for virus scanning
This commit is contained in:
parent
2186c4c873
commit
bab001d496
@ -54,6 +54,7 @@ int VirScan(void)
|
||||
while (fread(&virscan, virscanhdr.recsize, 1, fp) == 1) {
|
||||
cmd = NULL;
|
||||
if (virscan.available) {
|
||||
Altime(3600);
|
||||
cmd = xstrcpy(virscan.scanner);
|
||||
cmd = xstrcat(cmd, (char *)" ");
|
||||
cmd = xstrcat(cmd, virscan.options);
|
||||
@ -63,6 +64,7 @@ int VirScan(void)
|
||||
rc = TRUE;
|
||||
}
|
||||
free(cmd);
|
||||
Altime(0);
|
||||
Nopper();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user