[so] Fw: [Tema 2][linux] mq_receive returneaza Bad file descriptor
Claudiu Olteanu
olteanu.claudiu at ymail.com
Wed Apr 10 12:20:34 EEST 2013
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 :).
Multumesc si scuze pentru deranj!
Claudiu
________________________________
From: Adrian Sendroiu <molecula2788 at gmail.com>
To: Claudiu Olteanu <olteanu.claudiu at ymail.com>
Cc: Sisteme de Operare <so at cursuri.cs.pub.ro>
Sent: Wednesday, April 10, 2013 12:03 PM
Subject: Re: [so] Fw: [Tema 2][linux] mq_receive returneaza Bad file descriptor
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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20130410/39e177a8/attachment.html>
More information about the so
mailing list