| re: use same library, other result currupt..
fallleaf wrote:[color=blue]
> i make library, this library function is create circula-queue in shared
> memory and attach, queue put, queue get, etc...
>
> sample program make,
> 1 sample program use library, test make queue in shared memory.
> 2 sample program use library, test attach queue in shared memory which
> created 1 sample program.
> result is success.
>
> Then A program use this library, and B program use this library.
>
> A program is create queue in shared memory use library.
> B program is attach queue in shared memory which created by A program.
> result is shmget fail. - fail reason(Invalid parameter)
>
> so,
> ipcs -a typing, and then, not same SEGSZ.
> library is always make same size queue in shared memory.
>
> what can i solve this problem??? T^T
>[/color]
Try comp.unix.programmer and add some of your code, including the
parameters you are passing to shmget/shmat.
--
Ian Collins. |