attr.mq_maxmsg = 20;
attr.mq_msgsize = 100;
attr.mq_flags = 0;
mqd_t md = mq_open("/test", O_CREAT|O_RDWR , 0666 , &attr);
if return -1 mean can not open message queue
Please format the code you posted, by wrapping it in triple backticks. -> `
Check errno
Обсуждают сегодня