[so] [tema2][linux]problema sincronizare client-gateway
Alex Gorunescu
algorunescu at yahoo.com
Thu Apr 7 17:52:01 EEST 2011
q_gateway il verific cand creez coada sa fie valid. Daca n-ar fi, ar pica acolo
si nici n-ar mai ajunge la receive.
Alex
________________________________
From: Lungu Adrian <lungu_a_ro at yahoo.com>
To: so at cursuri.cs.pub.ro
Sent: Thu, April 7, 2011 5:08:26 PM
Subject: Re: [so] [tema2][linux]problema sincronizare client-gateway
Testeaza daca q_gateway este valid , inainte de receive-ul ala :
if(q_gateway == (mqd_t) - 1)
printf("invalid");
sau mai bine foloseste macroul DIE (in gasesti in fiecare laborator, in
utils.h)
DIE(q_gateway == (mqd_t) - 1, "mq_open error"); ... la asta m-am referit
cand am zis sa postezi eroarea .. asa primesti mai multe informatii despre
eroare (inclusiv fisierul si linia) decat cu printf-ul tau.
_______________________________________________
http://elf.cs.pub.ro/so/wiki/resurse/lista-discutii
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20110407/adf03e19/attachment.htm>
More information about the so
mailing list