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-21 8:44

It's like the film Hackers. When I first saw it, as an arrogant teenager, I mocked its unrealistic portrayal of hacking and computers. But viewing it later on, as a more mature adult, I  appreciated it as an artistic, conceptual construction that referenced hacker culture in the same way that all good art holds a mirror up to society. Also, the chick was hot.

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