<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span>Da, asta era problema. Am folosit direct sursele din laborator si acolo coada era preluata doar cu drept de scriere; iar mie nu mi-a mai trecut prin cap sa verific :). </span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal;"><span>Multumesc si scuze pentru deranj!</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal;"><span>Claudiu</span></div><div><br></div> <div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"> <div style="font-family:
'times new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Adrian Sendroiu <molecula2788@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> Claudiu Olteanu <olteanu.claudiu@ymail.com> <br><b><span style="font-weight: bold;">Cc:</span></b> Sisteme de Operare <so@cursuri.cs.pub.ro> <br> <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, April 10, 2013 12:03 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [so] Fw: [Tema 2][linux] mq_receive returneaza Bad file descriptor<br> </font> </div> <br>Claudiu Olteanu <<a ymailto="mailto:olteanu.claudiu@ymail.com" href="mailto:olteanu.claudiu@ymail.com">olteanu.claudiu@ymail.com</a>> writes:<br><br>> Am procedat in felul urmator: am pus un sleep inainte de mq_receive, am rulat programul cu strace cum ai zis si tu si am afisat
cu lsof fisierele<br>> deschise de procesul respectiv. <br>><br>> - strace imi returneaza :<br>> [pid 3142] mq_timedreceive(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 8193, 0, NULL) = -1 EBADF (Bad file<br>> descriptor)<br>><br>> - "lsof -a -p 3142 " in momentul respectiv imi afiseaza pe ultima linie<br>><br>> COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME<br>> test2 3142 clau 4w REG 0,13 80 17577 /queue_1<br>><br><br>Ai drept de citire pe coada?<br><br><br> </div> </div> </div></body></html>