From: "Jeremy D. Levine" <levine@amarex.com>
Subject: Re: Digital Unix message queue programming problem!!
Date: 1997/02/27 [thread overview]
Message-ID: <33159E1E.2781@amarex.com> (raw)
In-Reply-To: 33162B5F.437B@silicon.net.my
Kok Fock Seng wrote:
>
>
> if (( messageid = msgget ((key_t)(6000L), IPC_CREAT|0660)) == -1 )
> exit (-1); ^^^^^
> fprintf(stderr, "[%d]", messageid);
>
> if ( msgsnd ( messageid, &m, strlen(m.msgbuf)+1, IPC_NOWAIT) == -1)
> ^^^^^^^^^^
I think if you do a ipcs -q you will you that the queue you created
has no mode bits set ( ie. no read or write bits ). Use ipcrm -q <num>
to remove the queue and change you program to match the above lines.
I tried it and it worked.
- jeremy levine - levine@amarex.com
next prev parent reply other threads:[~1997-02-27 5:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-02-27 5:00 Digital Unix message queue programming problem!! Kok Fock Seng
1997-02-27 5:00 ` Lawrence Kirby
1997-02-28 5:00 ` Andy Knight
1997-02-28 5:00 ` Stephen Baynes
1997-02-27 5:00 ` Jeremy D. Levine [this message]
1997-02-27 5:00 ` Charles M Richmond
1997-02-27 5:00 ` Kok Fock Seng
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox