From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id F070ABC37 for ; Mon, 25 Jan 2010 09:56:19 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEAPPrXEvVuiYS/2dsb2JhbACDYsRxjXUJgSOCNlkE X-IronPort-AV: E=Sophos;i="4.49,338,1262559600"; d="scan'208";a="42408438" Received: from solaria.dimino.org ([213.186.38.18]) by mail3-smtp-sop.national.inria.fr with ESMTP; 25 Jan 2010 09:56:19 +0100 Received: from aurora (localhost.localdomain [127.0.0.1]) by solaria.dimino.org (Postfix) with ESMTP id D31A080048; Mon, 25 Jan 2010 09:56:18 +0100 (CET) Received: by aurora (Postfix, from userid 1000) id E71644137C; Mon, 25 Jan 2010 09:56:24 +0100 (CET) Subject: Re: [Caml-list] Toplevel debugging. From: =?ISO-8859-1?Q?J=E9r=E9mie?= Dimino To: guillaume.yziquel@citycable.ch Cc: OCaml List In-Reply-To: <4B5B31E3.5060605@citycable.ch> References: <4B3A7C34.3060606@yziquel.homelinux.org> <4B4F3402.4010307@citycable.ch> <4B5B2F9F.3050302@citycable.ch> <4B5B31E3.5060605@citycable.ch> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Date: Mon, 25 Jan 2010 09:56:24 +0100 Message-ID: <1264409784.3482.8.camel@aurora> Mime-Version: 1.0 X-Mailer: Evolution 2.28.2 X-Spam: no; 0.00; toplevel:01 0100,:01 guillaume:01 stdin:01 non-blocking:01 toplevel:01 stdin:01 non-blocking:01 cheers:01 git:98 unix:01 exception:01 caml-list:01 sys:03 debugging:03 Le samedi 23 janvier 2010 =C3=A0 18:29 +0100, Guillaume Yziquel a =C3=A9cri= t : > >> # Fatal error: exception Sys_blocked_io > >> yziquel@seldon:~/git/mlgame$=20 It is because mlgame set stdin into non-blocking mode (file input.ml, line 81) and the toplevel does not support that. If you want to be able to put stdin into non-blocking mode in the toplevel, you should install lwt and load the package lwt.unix before mlgame. Cheers, J=C3=A9r=C3=A9mie