Don't allow minthreads > maxthreads.
Suggested by: rmacklem
This commit is contained in:
parent
08bddad546
commit
57b1c84032
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=243645
@ -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