amarforum12 0 Newbie Poster

Hi All,

I am using the message queue (msgsnd() call) in my c program binary to send the message to the parent along with priority. The call hangs in between after I send the message to the parent. I have an error check if the msgsnd call fails. But the binary is not printing any message so I suspect msgsnd() call is HANGED.

We have Solaris 9 OS. I have tried to add below parameters and check but no avail.
set msgsys:msginfo_msgmnb
set msgsys:msginfo_msgtql

The solaris 9 version takes the default values for above parameters unless it is explicitly set.

I know that if we put IPC_NOWAIT parameter in msgsnd() call, we can come out of hang state. But can anybody show me the light as to why the msgsnd() has hanged. Do I need to change any parameter on Solaris or do anything else.

Regards,
Amar

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.