From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id B58CAD45F for ; Wed, 2 Nov 2005 16:07:07 +0100 (CET) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.191]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id jA2F77Ne028486 for ; Wed, 2 Nov 2005 16:07:07 +0100 Received: from [212.227.126.160] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1EXKCg-0004BT-00; Wed, 02 Nov 2005 16:07:06 +0100 Received: from [84.58.130.212] (helo=gate.lan.gerd-stolpmann.de) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1EXKCg-0008Aj-00; Wed, 02 Nov 2005 16:07:06 +0100 Received: from flakew.lan.gerd-stolpmann.de (flakew.lan.gerd-stolpmann.de [192.168.0.32]) by gate.lan.gerd-stolpmann.de (Postfix) with ESMTP id 9125CC05F; Wed, 2 Nov 2005 16:07:06 +0100 (CET) Subject: Re: [Caml-list] The best way to circumvent the lack of Thread.kill ? From: Gerd Stolpmann To: Julien Narboux Cc: caml-list@yquem.inria.fr In-Reply-To: <4368CDE5.3060605@inria.fr> References: <43688C4C.2080606@inria.fr> <1130937814.4327.36.camel@localhost.localdomain> <4368CDE5.3060605@inria.fr> Content-Type: text/plain Date: Wed, 02 Nov 2005 16:07:06 +0100 Message-Id: <1130944026.4327.57.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 Content-Transfer-Encoding: 7bit X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:a6865a839c0178d9aa0ce41878507ea2 X-Miltered: at concorde with ID 4368D61B.002 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 gerd:01 stolpmann:01 threads:01 sigterm:01 gerd:01 stolpmann:01 viktoriastr:01 64293:01 darmstadt:01 thread:02 purely:02 implemented:02 implemented:02 telefon:02 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=disabled version=3.0.3 Am Mittwoch, den 02.11.2005, 15:32 +0100 schrieb Julien Narboux: > > > >There is a hack that works (Xavier forgive): > > > > > I just implemented your hack in drgeocaml, it works fine ! (under linux > at least , I have not tested on Windows yet) I think it works under Windows, too, although not tested. The way threads are implemented is basically the same. From reading the sources, I only saw that under Windows Sys.sigterm is used instead of Sys.sigvtalrm, maybe this is a special kind of joke. (Note that this type of signal is purely virtual, i.e. not routed over the OS, so it does not matter that Windows has no signals.) Gerd -- ------------------------------------------------------------ Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany gerd@gerd-stolpmann.de http://www.gerd-stolpmann.de Telefon: 06151/153855 Telefax: 06151/997714 ------------------------------------------------------------