This is a little urgent. I have to do use shared memory segments. I wrote this programme. I have tried everything, as you can see (void *, int * printing and so on), but havent been able to debug the error.
I will be grateful if some one can point out the bug.
Please post any thing you think may be causing this error.
#define KEY 600
#define SIZE 20
printf("Value put, waiting for %d\n",getppid());
It prints till 'Value put, waiting for ...' in the child and then
this is followed by a Segmentation Fault message. It simply says 'Segmentation Fault'.