From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id VAA22293; Mon, 3 Sep 2001 21:28:08 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id VAA22229 for ; Mon, 3 Sep 2001 21:28:07 +0200 (MET DST) Received: from smtp.nwlink.com (smtp.nwlink.com [209.20.130.57]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f83JS5T21842 for ; Mon, 3 Sep 2001 21:28:06 +0200 (MET DST) Received: from ip178.usw22.rb1.bel.nwlink.com (ip178.usw22.rb1.bel.nwlink.com [207.202.195.178]) by smtp.nwlink.com (8.9.3/8.9.1) with SMTP id MAA23570 for ; Mon, 3 Sep 2001 12:26:14 -0700 (PDT) Received: (qmail 11711 invoked by uid 500); 3 Sep 2001 19:27:40 -0000 Date: Mon, 3 Sep 2001 12:27:40 -0700 From: Michael Leary To: caml Subject: [Caml-list] flushing stdout with flush stdout not good? Message-ID: <20010903122740.A11704@ip178.usw22.rb1.bel.nwlink.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I'm programming a realtime bot (as you may know :) and using printf with a newline terminated format string followed by a call of fse ( short for "flush stdout" in my prog) really doesn't work very well at flushing stdout -- commands don't get read properly by the system, and get processed in chunks, rather than as sent. For some reason calling print_newline is amazingly more effective, i.e. leaving the newline out of the printf format string, and letting print_newline () take care of it. Is this a known feature, or does it have to do with the indirect call of flush stdout? -- ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr