At Larry's suggestion, I'll try here...
Perl 5.001 on my AIX 3.2 box accepts the following nicely:
$MSGQID = msgget(pack("L",0x0abcdef),(IPC_CREAT | 00660)) or die;
$MSGQID = msgget("filename",(IPC_CREAT | 00660)) or die;
as shown by ipcs:
IPC status from /dev/mem as of Tue Oct 24 12:07:45 1995
T ID KEY MODE OWNER GROUP
q 12289 00000000 -Rrw-rw---- dcheney staff
q 16386 00000000 -Rrw-rw---- dcheney staff
but note that the KEY is always zero. types.h shows typedef long key_t;
so I'd expect the first msgget to work. Since it doesn't, the second
is more like one would expect if libc's ftok() was being used... but still
no KEY.
How can one use the same KEY to connect multiple processes to the same
message queue? Pointers?
As I'm not subscribed (yet:) , please e-mail directly... thanks!
-----------------------------------------------------------------------------
David J. Cheney Electronic Commerce Services
(512) 838-8017 (T/L 678) IBM Networked Application Services
http://www.austin.ibm.com/~dcheney 11400 Burnet Road, Austin, TX 78758
-----------------------------------------------------------------------------
Perl 5.001 on my AIX 3.2 box accepts the following nicely:
$MSGQID = msgget(pack("L",0x0abcdef),(IPC_CREAT | 00660)) or die;
$MSGQID = msgget("filename",(IPC_CREAT | 00660)) or die;
as shown by ipcs:
IPC status from /dev/mem as of Tue Oct 24 12:07:45 1995
T ID KEY MODE OWNER GROUP
q 12289 00000000 -Rrw-rw---- dcheney staff
q 16386 00000000 -Rrw-rw---- dcheney staff
but note that the KEY is always zero. types.h shows typedef long key_t;
so I'd expect the first msgget to work. Since it doesn't, the second
is more like one would expect if libc's ftok() was being used... but still
no KEY.
How can one use the same KEY to connect multiple processes to the same
message queue? Pointers?
As I'm not subscribed (yet:) , please e-mail directly... thanks!
-----------------------------------------------------------------------------
David J. Cheney Electronic Commerce Services
(512) 838-8017 (T/L 678) IBM Networked Application Services
http://www.austin.ibm.com/~dcheney 11400 Burnet Road, Austin, TX 78758
-----------------------------------------------------------------------------