Don't allow minthreads > maxthreads.
Suggested by: rmacklem
This commit is contained in:
parent
08bddad546
commit
57b1c84032
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user