From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29214 invoked from network); 5 Apr 2009 23:11:05 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 5 Apr 2009 23:11:05 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 68466 invoked from network); 5 Apr 2009 23:10:59 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 5 Apr 2009 23:10:59 -0000 Received: (qmail 6775 invoked by alias); 5 Apr 2009 23:10:53 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26809 Received: (qmail 6760 invoked from network); 5 Apr 2009 23:10:53 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 5 Apr 2009 23:10:53 -0000 Received: from cork.scru.org (cork.scru.org [209.20.67.2]) by bifrost.dotsrc.org (Postfix) with ESMTPS id 3F6C382D4B6A for ; Mon, 6 Apr 2009 01:10:38 +0200 (CEST) Received: by cork.scru.org (Postfix, from userid 1000) id 4D2E8104918; Sun, 5 Apr 2009 23:10:36 +0000 (UTC) Date: Sun, 5 Apr 2009 23:10:36 +0000 From: Clint Adams To: zsh-workers@sunsite.dk Subject: tcp_read -d and newlines Message-ID: <20090405231036.GA13802@scru.org> Mail-Followup-To: zsh-workers@sunsite.dk MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: ClamAV 0.92.1/9206/Sun Apr 5 20:23:11 2009 on bifrost X-Virus-Status: Clean When tcp_read -d'ing a socket that doesn't end in a newline, the last "line" gets discarded, I think, because read returns an error on that line. What can be done?