Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

POSIX message queues

Name: Anonymous 2008-05-20 9:22

I want to create am message queue using POSIX mq_open(), unfortunately no message queue is created and mq_open() only returns -1.

Any ideas how i could get more information why mq_open() failed or how i could debug it further?


#include <mqueue.h>
...
#define MAX_MSG   100
#define OVER      (-1)
#define PMODE     0666
#define QUEUENAME "/myipc"
#define QUEUESIZE 10
...
mqd_t id;
struct mq_attr attr;
attr.mq_maxmsg = QUEUESIZE;
attr.mq_msgsize = sizeof (int);
attr.mq_flags = 0;

id = mq_open (QUEUENAME, O_RDWR, PMODE, &attr);

Name: Anonymous 2008-05-20 9:36

Yeah, Windows is way better. I tried Debian, but I can't get the DVD drive to work (after about five hours of trying). Stick with Windows if you don't want to spend more time configuring your system than actually using it.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List