07-25-2001
IPC - queue problems
Hi,
I´m having a lot of problems when working with message queues, both on HP-UX Systems and Sun Solaris. When we fill a queue with a messages, the system hangs and locks everything that relies on the use of IPC resources. Anyone knows how to eliminate this problem?
Thanks,
Haroldo Teixeira
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All
Does anyone know what is meant by PRINTER STATUS CONNECT concerning print queues?
At work we run a Perle/Connectix JetStream 8500 (RJ45 Model) to connect our dot matrix printers and often we get the Connect Status.
Nobody I speak to knows what the status means. When the printer... (0 Replies)
Discussion started by: nickbungus
0 Replies
2. HP-UX
Hello,
My question is related to "pipcs -qa" command under HP-UX 11i PA-RISC 64 bits.
We have a little C program that creates posix ipc message queues using the mq_open() system function.
The program fail with 'No space left on device' error when we create big queues. What is the system... (6 Replies)
Discussion started by: cadanir
6 Replies
3. UNIX for Advanced & Expert Users
Hi all,
Is there a situation like system assigning same ID's for semaphores and shared memory at the same time.
Ex: When I try to create 10 Shared memory objects with starting key as 0x1500 and 10 semaphore objects with starting key as 0x1234 in the same program. Assume those are not deleted... (2 Replies)
Discussion started by: gkreddy
2 Replies
4. SCO
Hwey I manage a Unix box where I ama having multiple printer problems. the only way to get printers to print again is by rebooting. I stop and start services with no luck. Any one have any ideas? It can go weeks with being OK but then any given printer can go and cause the entire print queue to... (6 Replies)
Discussion started by: uk2us88
6 Replies
5. UNIX for Dummies Questions & Answers
Hi everybody,
this is the situation. there is a programm XYZ which opens a message queue with the key 47110815 and waits for a SIGUSR1. After receiving this signal it sends a message with type 100 and a number (as ASCII) in the message-body.
I have to write a prog which frist sends the... (1 Reply)
Discussion started by: daredevil82m
1 Replies
6. UNIX for Dummies Questions & Answers
Dear all,
I'm a new guy doing some quntum calculation with gaussian on my rocks clusters. Recently, my cluster upgraded to rocks 5.3, but something strange happened. Everything goes correct except a serious problem. when I summit my gaussian job with script to sge queue, the job does run,... (0 Replies)
Discussion started by: liuzhencc
0 Replies
7. Solaris
I was asked to look into a problem with a Sun Netra 440 in another department. On the server in question, the relevant 'uname -a' information is, "SunOS host1 5.9 Generic_118558-16 sun4u sparc SUNW,Netra-440". That information aside, while the other admin is logged into the ALOM, these errors are... (0 Replies)
Discussion started by: Borealis
0 Replies
8. AIX
Hi,
We have a problem with remote printers installed on our server.
Consistently, the printer status is ready but the impressions of the queue are waiting therefore blocked. To unblock the situation, we must launch stopsrc qdaemon-s-s and startsrc qdaemon to reactivate the queue.
Thank you... (2 Replies)
Discussion started by: GBAGO
2 Replies
9. AIX
I am using AIX 5.
Just swapped over an HP printer.
The old printer was on a JetDirect box. The new printer connects directly to the network. Using the same IP address to print to, so the only alteration I made was to edit the etc/qconfig file to alter the port setting from 9103 to 9100. I can... (2 Replies)
Discussion started by: charding
2 Replies
10. Programming
I'm currently studying IPC, I have a first program
A: Do an exec for B and wait
B: Receive through a fifo a string from a third program "C" and have to resend it to A
I was thinking to open a pipe in A before the exec, then passing fd to B as an argument
if(pipe(fd)==-1){
... (1 Reply)
Discussion started by: cifz
1 Replies
LEARN ABOUT FREEBSD
msgget
MSGGET(2) BSD System Calls Manual MSGGET(2)
NAME
msgget -- get message queue
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/msg.h>
int
msgget(key_t key, int msgflg);
DESCRIPTION
The msgget() function returns the message queue identifier associated with key. A message queue identifier is a unique integer greater than
zero.
A message queue is created if either key is equal to IPC_PRIVATE, or key does not have a message queue identifier associated with it, and the
IPC_CREAT bit is set in msgflg.
If a new message queue is created, the data structure associated with it (the msqid_ds structure, see msgctl(2)) is initialized as follows:
o msg_perm.cuid and msg_perm.uid are set to the effective uid of the calling process.
o msg_perm.gid and msg_perm.cgid are set to the effective gid of the calling process.
o msg_perm.mode is set to the lower 9 bits of msgflg.
o msg_cbytes, msg_qnum, msg_lspid, msg_lrpid, msg_rtime, and msg_stime are set to 0.
o msg_qbytes is set to the system wide maximum value for the number of bytes in a queue (MSGMNB).
o msg_ctime is set to the current time.
RETURN VALUES
Upon successful completion a positive message queue identifier is returned. Otherwise, -1 is returned and the global variable errno is set
to indicate the error.
ERRORS
[EACCES] A message queue is already associated with key and the caller has no permission to access it.
[EEXIST] Both IPC_CREAT and IPC_EXCL are set in msgflg, and a message queue is already associated with key.
[ENOSPC] A new message queue could not be created because the system limit for the number of message queues has been reached.
[ENOENT] IPC_CREAT was not set in msgflg and no message queue associated with key was found.
SEE ALSO
msgctl(2), msgrcv(2), msgsnd(2)
HISTORY
Message queues appeared in the first release of AT&T System V UNIX.
BSD
July 9, 2009 BSD