2009-04-24 09:44:53     signals

Document created by Aaronwu Employee on Aug 15, 2013
Version 1Show Document
  • View in full screen mode

2009-04-24 09:44:53     signals

vijai ragavan (INDIA)

Message: 73159   

 

hai,

 

I have some doubt regarding messages on uclinux.

 

I am using the following code for message create ,pend and post .

 

Message create:

 

#define MESSAGE_Q

 

signed int messageid,temp_vari.

 

messageid=msgget(MESSAGE_Q,0);

 

Pend message:

 

msgrcv(messageid,&temp_vari,200,0,0);

 

here message id is returned properly,But the msgrcv function returned value is -1.I dont know, where i done the mistake?. So please suggest my mistake.

QuoteReplyEditDelete

 

 

2009-04-24 10:23:18     Re: signals

Robin Getz (UNITED STATES)

Message: 73163   

 

Vijai:

 

Please attach or include something that compiles - not random lines of source code. That way I know exactly what header files you are using.

 

Thanks

 

-Robin

QuoteReplyEditDelete

 

 

2009-04-24 12:26:31     Re: signals

Mike Frysinger (UNITED STATES)

Message: 73171   

 

if a function returns an error and you dont know why, then use the normal methods for querying the error such as looking at errno and/or running through strace.

QuoteReplyEditDelete

Attachments

    Outcomes