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 XAA00579; Thu, 13 Feb 2003 23:02:03 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 XAA00968 for ; Thu, 13 Feb 2003 23:02:02 +0100 (MET) Received: from mallaury.noc.nerim.net (smtp-102.noc.nerim.net [62.4.17.102]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h1DM21f07012 for ; Thu, 13 Feb 2003 23:02:02 +0100 (MET) Received: from hector.lesours (lesours.starynkevitch.net [80.65.224.217]) by mallaury.noc.nerim.net (Postfix) with ESMTP id 56B9E62FBB for ; Thu, 13 Feb 2003 23:01:56 +0100 (CET) Received: from basile by hector.lesours with local (Exim 3.36 #1 (Debian)) id 18jRQc-00057T-00 for ; Thu, 13 Feb 2003 23:01:58 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <15948.5589.540342.961807@hector.lesours> Date: Thu, 13 Feb 2003 23:01:57 +0100 To: caml-list@inria.fr Subject: [Caml-list] SIGTERM signal in multithreaded application X-Mailer: VM 7.07 under Emacs 21.2.2 From: Basile STARYNKEVITCH Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Dear All while working on POESIA - www.poesia-filter.org ; see CVS code under http://www2.poesia-filter.org:8000/ I notice that (with the native ocamlopt 3.06 compiler) on my Linux/x86 Debian/Sid (2.4.20 kernel, glibc 2.3.1) When a multithreaded process is sent a SIGTERM or SIGINT signal (either by a ^C on the terminal, or by the kill command) every thread executes the signal handler with a negative signal number, and the Sys.sigterm is -11 (negative eleven) Is it possible to code so that only the main thread recieves a SIGTERM signal and not all threads? Is this a Linux pthread or a OCaml runtime system issue? (I don't master all the subtilities of Linux threads, in particular w.r.t signals). -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basilestarynkevitchnet alias: basiletunesorg 8, rue de la Faïencerie, 92340 Bourg La Reine, France ------------------- 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