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 OAA30939; Fri, 3 May 2002 14:20:28 +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 OAA30940 for ; Fri, 3 May 2002 14:20:27 +0200 (MET DST) Received: from relay-1m.club-internet.fr (relay-1m.club-internet.fr [194.158.104.40]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g43CKRP01211 for ; Fri, 3 May 2002 14:20:27 +0200 (MET DST) Received: from warp (lns01v-8-41.w.club-internet.fr [213.44.247.41]) by relay-1m.club-internet.fr (Postfix) with SMTP id 29ABD1769 for ; Fri, 3 May 2002 14:20:26 +0200 (CEST) Message-ID: <001101c1f29c$98e4b570$5000a8c0@warp> From: "Warp" To: "OCaml" Subject: [Caml-list] input_line is blocking Date: Fri, 3 May 2002 14:18:13 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi I'm running "ocamlc" by using Unix.open_process_full in order to write an automatic compiler. Right now, it's working fine, but I got now a problem with input_line : after running open_process_full , i'm first reading all its stdout lines of the process until End_of_file is raised, then all its stderr lines using the same function. It has work fine for few weeks now, but now I found that in some cases input_line will block, not raising End_of_file. Actually I got the following errors (on purpose ! ) in one of my test files : File "player.ml", line 16, characters 6-66: Warning: this expression should have type unit. The implementation player.ml does not match the interface player.cmi : Modules do not match: sig type 'a t = 'a array ... .... end is not included in sig ........... end The field 'c_value' is required but not provided I tried to correct few errors, and if I correct enough of them, it works the call to input_line on the stdout where NO DATA is written is raising End_of_file ) , but if correct some other errors, I won't work again... Perhaps something to do with bufferization ? If ocamlc generates too much data on stderr, then he waits for the calling process to read that data, but the process is currently reading on its stdout.... And vice-versa for ocamldep ( which generates a lot of data on its stdout ) Any help would be apprecied Nicolas Cannasse ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners