Posted by Huxly on 14:45:00 08-19-2001
I'm trying to create a message queue
in Red Hat 7.1, kernel 2.4.2-2.
But this statement fails. I don't know
why.
int x = msgget( (key_t)1234, 0666 | IPC_CREAT );
The program just hangs and does nothing.
So I single stepped using the debug
gdb and gdb printed:
...sysdeps/unix/sysv/linux/msgget.c
No such file or directory
I've go no idea what's going on or
why this doesn't work. Anybody got
any ideas?
Posted by KaGez on 16:02:00 08-24-2001
maybe it'll help us a bit more if we get the whole source ...
[addsig]
Posted by Huxly on 14:52:00 08-26-2001
I figured it out. There's nothing wrong
with that statement. It's from the
retrieving program that gets the message
from the queue. The problem was with the
sending program. The message it sent was
too big and this screwed up the queue so
the receiving program failed.
I learned a lot from having to debug
this problem. Sometimes mistakes are a
good thing.
Also, the site at http://www.linuxdoc.org
where I got the Linux Programmer's Guide
helped a great deal.