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 -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html