leela wrote:
Can any one tell me why do u get a file descriptor 0 (zero) even after not closing the stdin.
Here is my code (partial code) #define FIFO1 "/tem/fifo1" #define FIFO2 "/tem/fifo2"
ReadFd = open(FIF01, O_RDONLY, 0); WriteFd = open(FIF02, O_WRONLY, 0);
When i tried to print ReadFd and WriteFd; i got both the values zero, my gcc version is 2.96 under redhat linux . Can any one help me.
Perhaps since you're using another distro, you should seek help from users of that other distro. I think redhat-devel is appropriate and you should be able to find how to subscribe starting from www.redhat.com
OTOH if you reproduce the problem using Debian tools, then you're welcome to seek help here.
Red Hat does things differently - such as use a Red Hat-supported fork of the compiler.
--
Cheers John
-- spambait [EMAIL PROTECTED] [EMAIL PROTECTED] Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]