Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.042 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'output': 0.05; 'dan': 0.09; 'excluding': 0.09; 'cc:addr:python-list': 0.11; 'buffering,': 0.16; 'cc:name:python list': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'file': 0.32; 'probably': 0.32; '(i.e.': 0.33; "can't": 0.35; 'but': 0.35; 'received:google.com': 0.35; 'pm,': 0.38; 'does': 0.39; 'sure': 0.39; 'even': 0.60; "you're": 0.61; 'further': 0.61; 'kind': 0.63; 'wish': 0.70; 'to:addr:nobody': 0.96 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=sb17izNn/1hESHWny13wMVeQCNPleV/tpLgFcHti1jo=; b=EcxAJ2MaZeBvLeveGdiklj1WAh+/J1KnyxPAJWSGyZ3pjrLQAUPYXkG7JvY9bFPkYm AuLk/pl0Fa6ccikvHUc5HWM5zRAq3Fvubcl8D06hR3LQ0Uw8DvxU4k2WVN+neak059+N sLxgZeFdvIlgLyPDGPtx0NdHSNAsCyDeaqO437vfyHTMwbUvL8cddqK+U7BMqrJ2AwXU 1tRRYMpIXpL+D1a5k2NI1WIwFakfRt/EQpOFMNA+v2izo64IFPR136yJ4qYOhfd1bi0D Tqam3FIyFg6zwxI6CxGnjm7ponBFQ6OLqiOQbgVzz7w6n2DQBk7BYDUllRUSiWzU+o5W ctkA== MIME-Version: 1.0 X-Received: by 10.152.234.199 with SMTP id ug7mr18237550lac.26.1413682920408; Sat, 18 Oct 2014 18:42:00 -0700 (PDT) In-Reply-To: References: Date: Sat, 18 Oct 2014 18:42:00 -0700 Subject: Re: Flush stdin From: Dan Stromberg To: Nobody Content-Type: text/plain; charset=UTF-8 Cc: Python List X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 9 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1413682922 news.xs4all.nl 2896 [2001:888:2000:d::a6]:54533 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:79284 On Sat, Oct 18, 2014 at 6:34 PM, Dan Stromberg wrote: >> Once the "nc" process actually write()s the data to its standard >> output (i.e. desriptor 1, not the "stdout" FILE*) > I'm not sure why you're excluding stdout, but even if nc is using > filedes 1 instead of FILE * stdout, isn't it kind of irrelevant? On further reflection, isn't it stdio that does the varied buffering, and filedes 1 that's always unbuffered? IOW, the OP might wish nc was using 1, but it probably can't be given what they're seeing.