From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 94EBBBC88 for ; Mon, 31 Jan 2005 20:30:19 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j0VJUInV027804 for ; Mon, 31 Jan 2005 20:30:18 +0100 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id UAA15682 for ; Mon, 31 Jan 2005 20:30:17 +0100 (MET) Received: from home.mk.pp.ru (av6800.comex.ru [217.10.34.155]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j0VJUDQt013593 for ; Mon, 31 Jan 2005 20:30:17 +0100 Received: from ermine.home (ermine.home [192.168.2.2]) by home.mk.pp.ru (Postfix) with ESMTP id 77AB720D7D; Mon, 31 Jan 2005 22:30:13 +0300 (MSK) Received: by ermine.home (Postfix, from userid 1001) id B6E303A9F67; Mon, 31 Jan 2005 22:33:24 +0300 (MSK) Date: Mon, 31 Jan 2005 22:33:24 +0300 From: Anastasia Gornostaeva To: SooHyoung Oh Cc: caml-list@inria.fr Subject: Re: [Caml-list] timer Message-ID: <20050131193324.GA77148@ermine.home> References: <20050103015835.GA22656@ermine.home> <41D9ED2A.8080906@compiler.kaist.ac.kr> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <41D9ED2A.8080906@compiler.kaist.ac.kr> User-Agent: Mutt/1.5.6i X-Miltered: at nez-perce with ID 41FE874A.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 41FE8745.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 wrote:01 ocaml:01 libs:01 native-code:01 libc:01 bytecode:01 native-code:01 ocaml:01 guess:02 module:03 module:03 compiled:04 executing:05 tue:06 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=disabled version=3.0.2 X-Spam-Level: On Tue, Jan 04, 2005 at 10:11:06AM +0900, SooHyoung Oh wrote: > Module Timer > This module does not work when is compiled for native-code mode and is linked with libc_r under FreeBSD 5.x As bytecode it works perfectly, but i want native-code. Executing of native-code test: bash-2.05b$ ./tst Sleeping for 1 sec: 1107199242.936151 Waked: 1107199243.038147 Sleeping for 2 sec: 1107199243.038242 Waked: 1107199245.038524 Sleeping for 300 msec: 1107199245.039142 ^C Here it stops and eats CPU up to 99% (it does not hang up). I guess it is non-portability of ocaml (i have only 3.08.2) The same shit happens when I use setitimer: my programs sees 1-3 alrarm signals and does not see alarms signals anymore. Any idea? ermine