<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt">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.<br><div> </div>Alex<div><br></div><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><br><div style="font-family:arial, helvetica, sans-serif;font-size:13px"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Lungu Adrian <lungu_a_ro@yahoo.com><br><b><span style="font-weight: bold;">To:</span></b> so@cursuri.cs.pub.ro<br><b><span style="font-weight: bold;">Sent:</span></b> Thu, April 7, 2011 5:08:26 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [so] [tema2][linux]problema sincronizare client-gateway<br></font><br>
<br><br> Testeaza daca q_gateway este valid , inainte de receive-ul ala :<br><br><br> if(q_gateway == (mqd_t) - 1)<br> printf("invalid");<br><br> sau mai bine foloseste macroul DIE (in gasesti in fiecare laborator, in <br> utils.h)<br><br> DIE(q_gateway == (mqd_t) - 1, "mq_open error"); ... la asta m-am referit<br>cand am zis sa postezi eroarea .. asa primesti mai multe informatii despre <br>eroare (inclusiv fisierul si linia) decat cu printf-ul tau.<br><br>_______________________________________________<br><span><a target="_blank" href="http://elf.cs.pub.ro/so/wiki/resurse/lista-discutii">http://elf.cs.pub.ro/so/wiki/resurse/lista-discutii</a></span><br></div></div>
</div></body></html>