Add informative messages about why we exit the main loop.

This commit is contained in:
Sam Hocevar
2010-01-13 01:16:32 +00:00
committed by sam
parent 1cdf594c54
commit bbd8f065d8
+10
View File
@@ -484,11 +484,21 @@ int main(int argc, char *argv[])
if(opts->maxcrashes && opts->crashes >= opts->maxcrashes
&& opts->nchild == 0)
{
if(opts->verbose)
fprintf(stderr,
"zzuf: maximum crash count reached, exiting\n");
break;
}
if(opts->maxtime && _zz_time() - opts->starttime >= opts->maxtime
&& opts->nchild == 0)
{
if(opts->verbose)
fprintf(stderr,
"zzuf: maximum running time reached, exiting\n");
break;
}
}
/* Clean up */