version:10,11,12,master
in function shm_mq_sendv(...) line 491-492 code is
491: /* If queue has been detached, let caller know. */
492: if (mq->mq_detached)
493: return SHM_MQ_DETACHED;
when run before line 492, the receiver try receive message(will successes) and call shm_mq_detach(...) function,
then this function will return SHM_MQ_DETACHED, actually data send successed!!!
bucoo(at)sohu(dot)com