shmat() sending signal 11
Posted
by Sachin Chourasiya
on Stack Overflow
See other posts from Stack Overflow
or by Sachin Chourasiya
Published on 2010-05-11T13:41:00Z
Indexed on
2010/05/11
13:44 UTC
Read the original article
Hit count: 152
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
© Stack Overflow or respective owner