on which exactly?
> The example included executed correctly on:
> mandrake - ? (Can't remember, but it was an old version)
>
> but fails to work on:
> redhat - 2.2.14-5.0
> debian - 2.2.9
> mandrake - 2.4.19-16mdk
>
> We are currently working on mandrake - kernel 2.4.19-16mdk.
You have to add SHM_REMAP to shmat flags (see definitions of SHM_ flags).
>
> if ( (shmptr = shmat(shmid, &global01_, SHM_RND)) == (void *) -1)
> printf("shmat error: %d %s\n",errno, strerror(errno));
> else
add SHM_REMAP.
-alex
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/