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

Re: [Xen-devel] [PATCH] tools/xc: update tty detection in stdiostream_progress



On Tue, Feb 26, Ian Jackson wrote:

> Olaf Hering writes ("[Xen-devel] [PATCH] tools/xc: update tty detection in 
> stdiostream_progress"):
> > tools/xc: update tty detection in stdiostream_progress
> > 
> > As suggested by IanJ:
> > Check isatty only once to preserve the errno of ->progress users, and to
> > reduce the noice in strace output.
> > 
> > Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>
> 
> Thanks.  But how did you test this ?  It doesn't compile.

I noticed that compiler error but forgot to do qrefresh before sending.

> Also I think it would be better to name the struct member something
> other than "isatty" since that's also the function name.  In theory it
> should be OK but in practice I worry about compiler warnings etc.
> 
> How about "tty" ?

Will rename the member to tty and resend.

Olaf

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.