[so] Fw: [Tema 2][linux] mq_receive returneaza Bad file descriptor

Adrian Sendroiu molecula2788 at gmail.com
Wed Apr 10 12:03:02 EEST 2013


Claudiu Olteanu <olteanu.claudiu at ymail.com> writes:

> 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
> deschise de procesul respectiv. 
>
>  - strace imi returneaza :
> [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
> descriptor)
>
> - "lsof -a -p 3142 " in momentul respectiv imi afiseaza pe ultima linie
>
> COMMAND  PID USER   FD   TYPE DEVICE SIZE/OFF   NODE NAME
> test2   3142 clau    4w   REG   0,13       80  17577 /queue_1
>

Ai drept de citire pe coada?


More information about the so mailing list