Don't allow minthreads > maxthreads.

Suggested by: rmacklem
This commit is contained in:
Alfred Perlstein 2012-11-28 02:47:31 +00:00
parent 08bddad546
commit 57b1c84032

View File

@ -224,6 +224,10 @@ main(int argc, char **argv)
udpflag = 1;
argv += optind;
argc -= optind;
if (minthreads_set && maxthreads_set && minthreads > maxthreads)
errx(EX_USAGE,
"error: minthreads(%d) can't be greater than "
"maxthreads(%d)", minthreads, maxthreads);
/*
* XXX