我试图创建POSIX消息队列,但mq_open()始终返回-1。这是我的密码。可能是什么原因?我怎么能理解?

mqd_t mq;
struct mq_attr attr;
mq = mq_open("/randomMq", (O_RDONLY | O_CREAT), 0666, &attr);
printf("%d\n",mq);

最佳答案

正如您现在通过检查errno发现的,它看起来像neither System V messages nor POSIX message queues are currently implemented in the Windows Subsystem for Linux

关于c - 无法创建posix消息队列,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/48963584/

10-08 22:36
查看更多