From: Phil Sutter <phil@nwl.cc>
To: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Stephen Hemminger <stephen@networkplumber.org>, netdev@vger.kernel.org
Subject: Re: RFC: ss: improve horizontal output scaling
Date: Thu, 24 Sep 2015 15:32:16 +0200 [thread overview]
Message-ID: <20150924133216.GC26600@orbit.nwl.cc> (raw)
In-Reply-To: <1443101279.29850.162.camel@edumazet-glaptop2.roam.corp.google.com>
On Thu, Sep 24, 2015 at 06:27:59AM -0700, Eric Dumazet wrote:
> On Thu, 2015-09-24 at 14:36 +0200, Phil Sutter wrote:
>
> > This is because TIOCGWINSZ returns 80 if the output is a pipe.
>
> Not exactly.
>
> ss doesn't even call TIOCGWINSZ if output is a pipe.
Oh, you're absolutely right of course. Obviously, since STDOUT_FILENO
does not refer to a terminal, isatty() returns false.
Thanks, Phil
prev parent reply other threads:[~2015-09-24 13:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-24 11:16 RFC: ss: improve horizontal output scaling Phil Sutter
2015-09-24 12:25 ` Eric Dumazet
2015-09-24 12:36 ` Phil Sutter
2015-09-24 13:27 ` Eric Dumazet
2015-09-24 13:32 ` Phil Sutter [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150924133216.GC26600@orbit.nwl.cc \
--to=phil@nwl.cc \
--cc=eric.dumazet@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=stephen@networkplumber.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).