Fix logic in loop so it actually executes.

Pointed out by: fjoe
This commit is contained in:
alfred 2003-02-16 16:12:10 +00:00
parent 9948f76f41
commit 81da3fbe2a

View File

@ -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;