bug-glibc
[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: Paul Jarc
Subject: Re: Bad interaction between CVS and ssh due to libc
Date: Fri, 09 Aug 2002 14:25:20 -0400
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i686-pc-linux-gnu)

Derek Robert Price <address@hidden> wrote:
> 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).

Ah.  So frob the flags on one of them and see if the other one changes
too; then restore the original flags.  This still isn't perfect, for
the same reason that the problem exists: another process with a copy
of the same descriptor could be messing around with flags at the same
time.  But that seems unlikely in the cases where the problem appears.


paul



reply via email to

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