Member
37 posts
Registered:
Jan 2006
From few days a friend of mine is getting this error when he tries to run qizmo:
ERROR: Couldn't create message queue.
Before everything was ok. Any ideas?
Member
637 posts
Registered:
Jan 2006
try googling for qizmofix
it's a bash script IIRC
http://slip.4.pl/ - unblocking myspace facebook firewall
Member
198 posts
Registered:
Oct 2006
I read something like this:
NAME
msgget - get a message queue identifier
SYNOPSIS
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/msg.h>
int msgget(key_t key, int msgflg);
DESCRIPTION
The msgget() system call returns the message queue identifier associated with the value of the key argu-
ment. A new message queue is created if key has the value IPC_PRIVATE or key isn't IPC_PRIVATE, no mes-
sage queue with the given key key exists, and IPC_CREAT is specified in msgflg.
If msgflg specifies both IPC_CREAT and IPC_EXCL and a message queue already exists for key, then msgget()
fails with errno set to EEXIST. (This is analogous to the effect of the combination O_CREAT | O_EXCL for
open(2).)
(...)
Theory: There's some old message queue and the program fails to start because it collides with it. Solution: ? :E
Member
47 posts
Registered:
Jan 2006
Just make sure it quits properly and this will never happend.
Here is my qizmo+qw.sh
#!/bin/sh
setxkbmap us
xset m 0
xset s off
cd qizmo-dir
./qizmo -qizmoflags &
cd qw-dir
./qwclient -qwflags +connect localhost $*
xset s on
xset m default
setxkbmap se
killall -s INT qizmo
exit $?
Puh wrote a script to clear the queue but it's useless if you always quit qizmo like this or with ctrl+c, don't make me look for it, just reboot and your "queue will be cleared".
Member
198 posts
Registered:
Oct 2006
Ok, for anyone, who has no root access and runs a qizmo on his account AND encounters this problem, the solution is: use ipcs to see the queues (use options for times) and use ipcrm to remove ids.
Member
344 posts
Registered:
Nov 2006
added here for my own reference.. i used to look after this all the time..
ipcs -q | cut -d" " -f2 | xargs -n 1 ipcrm -q