On Fri, 5 May 2000, Alain Rolle wrote:
> I have two modules, in which FIFO 's are created.
> Module 1 : RTF 1 and RTF 2
> Module 2 : RTF 3 and RTF 4
>
> To these modules, two linux tasks are connected, in which the well known
> fdX = open("/dev/rtfX",...); (for both associated FIFO's;one to write
> to, one to read from)
> is done.
>
> Yet, when I look at the fdX's, it seems that in both linux tasks they have
> the values 3 and 4. (where one would expect at least s.th. like 3,4,5,6,
> or even better : just 1,2,3,4. )
Very expected. file descriptors are private in the process. They do not mean
anything exept that 0 is usually stdin, 1 stdout, 2 stderr, so if you open
more files allocation starts at 3. fd number is not related to RTF number.
Best regards,
--
Tomek
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/