Fix logic in loop so it actually executes.
Pointed out by: fjoe
This commit is contained in:
parent
190ff54ebb
commit
9d4156aed3
@ -811,7 +811,7 @@ shminit()
|
||||
int i;
|
||||
|
||||
TUNABLE_INT_FETCH("kern.ipc.shmmaxpgs", &shminfo.shmall);
|
||||
for (i = PAGE_SIZE; i < 0; i--) {
|
||||
for (i = PAGE_SIZE; i > 0; i--) {
|
||||
shminfo.shmmax = shminfo.shmall * PAGE_SIZE;
|
||||
if (shminfo.shmmax >= shminfo.shmall)
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user