bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bad interaction between CVS and ssh due to libc


From: Derek Robert Price
Subject: Re: Bad interaction between CVS and ssh due to libc
Date: Fri, 09 Aug 2002 14:09:44 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020606

Paul Jarc wrote:

Derek Robert Price <address@hidden> wrote:
Any suggestions on how I'd detect that stderr and stdout point at
the same file?  Preferrably in some cross-platform manner.

fstat() them and compare the device and inode numbers.


paul

On my system, the device and inode number are the same in the initial state - I assume because both stderr and stdout are being sent to the same tty, but I assume they have different file table entries in the kernel because stderr can be set to nonblock without doing the same to stdout. I need to know when the two file descriptors point to the same file table entry (i.e. $ cvs <whatever> 2>&1).

The flags available via fcntl() appear to be identical in both cases as well.

Derek

--
               *8^)

Email: address@hidden

Get CVS support at http://ximbiot.com
--
I will not say "Springfield" just to get applause.
I will not say "Springfield" just to get applause.
I will not say "Springfield" just to get applause...

         - Bart Simpson on chalkboard, _The Simpsons_






reply via email to

[Prev in Thread] Current Thread [Next in Thread]