Re: use same library, other result currupt..
- From: Ian Collins <ian-news@xxxxxxxxxxx>
- Date: Sat, 27 May 2006 18:30:16 +1200
fallleaf wrote:
i make library, this library function is create circula-queue in sharedTry comp.unix.programmer and add some of your code, including the
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
parameters you are passing to shmget/shmat.
--
Ian Collins.
.
- References:
- use same library, other result currupt..
- From: fallleaf
- use same library, other result currupt..
- Prev by Date: use same library, other result currupt..
- Next by Date: Re: Arrays issue
- Previous by thread: use same library, other result currupt..
- Next by thread: efficient code to do left shit on 64-bit values
- Index(es):
Relevant Pages
|