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 E06B0BC62 for ; Tue, 20 Sep 2005 19:52:54 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j8KHqsMS031908 for ; Tue, 20 Sep 2005 19:52:54 +0200 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 TAA04408 for ; Tue, 20 Sep 2005 19:52:53 +0200 (MET DST) Received: from mx1.polytechnique.org (mx1.polytechnique.org [129.104.30.34]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j8KHqrrd030327 for ; Tue, 20 Sep 2005 19:52:53 +0200 Received: from [192.168.0.11] (falcal.net [81.56.73.55]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTP id F189D331A3; Tue, 20 Sep 2005 19:52:52 +0200 (CEST) In-Reply-To: <200509201633.j8KGXlEi006829@home-on-the-dome.mit.edu> References: <200509201633.j8KGXlEi006829@home-on-the-dome.mit.edu> Mime-Version: 1.0 (Apple Message framework v734) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <91CBB9E6-B46C-4272-94B5-F7B2487C251B@m4x.org> Cc: argentoff@rtelekom.ru, ocaml Content-Transfer-Encoding: 7bit From: Damien Bobillot Subject: Re: [Caml-list] Sys.signal and an "Invalid argument" exception Date: Tue, 20 Sep 2005 19:52:50 +0200 To: John Carr X-Mailer: Apple Mail (2.734) X-AV-Checked: ClamAV using ClamSMTP at djali.polytechnique.org (Tue Sep 20 19:52:53 2005 +0200 (CEST)) X-DCC--Metrics: djali 32702; Body=1 Fuz1=1 Fuz2=1 X-Org-Mail: damien.bobillot.2002@polytechnique.org X-Miltered: at concorde with ID 43304C76.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 43304C75.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; damien:01 damien:01 caml-list:01 sig:01 specifies:01 sigaction:98 wrote:01 unix:01 exception:01 argument:01 argument:01 catching:02 sys:03 sys:03 solaris:05 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 John Carr wrote : >> Sys.signal Sys.sigkill (Sys.Signal_handle sighandler) > > Unix does not allow catching the KILL or STOP signal. > > On Solaris, the sigaction() manual warns: "The sig argument > specifies the signal and can be assigned any of the signals > specified in signal(3HEAD) except SIGKILL and SIGSTOP." Because, SIGKILL is the emergency quit signal, the last way to quit a process if standard methodes fail. -- Damien Bobillot