[oclug] fifo named pipes and file descriptors

bloozguy bloozguy at rogers.com
Sun Mar 3 14:26:09 EST 2002


Depends if you have another file open remember the 0-2 are taken by the
standard files stdin,stdout and stderr so 3 is the next.
However, you should never program like that assumption. Its just bad form.

On 3 Mar 2002, Greg Sarsons wrote:

> question:
>
> if I create a named pipe called /tmp/public and open it I get a file
> descriptor of 3.
>
> now if I go to another program and open /tmp/public will the file
> descriptor be the same?
>
> Greg
>
>
>
>
>
> _______________________________________________
> oclug mailing list
> oclug at lists.oclug.on.ca
> http://www.oclug.on.ca/mailman/listinfo/oclug
>




More information about the OCLUG mailing list