Fix logic in loop so it actually executes.
Pointed out by: fjoe
This commit is contained in:
parent
9948f76f41
commit
81da3fbe2a
@ -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…
Reference in New Issue
Block a user