Please let me know when a call to shmat function can raise a signal 11.
if ((shmId=shmget(shmKey, 0, 0)) <= 0) {
printf( "shmget(0x%x)", shmKey);
return 0;
}
printf( "queueOpen - Key 0x%x gives ID %d", shmKey, shmId);
qh = shmat(shmId, 0, SHM_RND);
I am getting a signal 11 by the code above. Please help