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 nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 9A3F9BB9C for ; Tue, 20 Sep 2005 17:25:07 +0200 (CEST) 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 j8KFP7LX018278 for ; Tue, 20 Sep 2005 17:25:07 +0200 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 RAA02754 for ; Tue, 20 Sep 2005 17:25:06 +0200 (MET DST) Received: from paul.rtelekom.ru (paul.rtelekom.ru [217.146.42.160]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j8KFP5YM016958 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 20 Sep 2005 17:25:06 +0200 Received: from paul.rtelekom.ru (paul@localhost [127.0.0.1]) by paul.rtelekom.ru (8.13.3/8.13.3) with ESMTP id j8KFP4G2003326 for ; Tue, 20 Sep 2005 19:25:04 +0400 (MSD) (envelope-from argentoff@rtelekom.ru) Received: from localhost (localhost [[UNIX: localhost]]) by paul.rtelekom.ru (8.13.3/8.13.3/Submit) id j8KFP4MX003325 for caml-list@inria.fr; Tue, 20 Sep 2005 19:25:04 +0400 (MSD) (envelope-from argentoff@rtelekom.ru) X-Authentication-Warning: paul.rtelekom.ru: paul set sender to argentoff@rtelekom.ru using -f From: Paul Argentoff Reply-To: argentoff@rtelekom.ru Organization: Ratmir-TeleKom To: ocaml Subject: Sys.signal and an "Invalid argument" exception Date: Tue, 20 Sep 2005 19:25:03 +0400 User-Agent: KMail/1.8.2 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200509201925.04072.argentoff@rtelekom.ru> X-Miltered: at nez-perce with ID 433029D3.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 433029D1.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocaml:01 bug:01 exception:01 exception:01 argument:01 argument:01 latter:03 raise:03 sys:03 sys:03 sais:05 mean:07 causes:07 feature:08 i'm:08 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 Hello, world. I'm writing a program in OCaml under FreeBSD (5.4-RELEASE). It appears that this text causes the program to raise an "Invalid argument" exception: Sys.signal Sys.sigkill (Sys.Signal_handle sighandler) The same effect takes place when I try to catch sigstop. Is this bug or feature? If latter, why it's not documented? I mean that both signals are present in FreeBSD and their numbers are valid, but the Documentation sais "If the signal number is invalid (or not available on your system), an Invalid_argument exception is raised." -- Yours truly, WBR, Paul Argentoff. Jabber: paul@jabber.rtelekom.ru RIPE: PA1291-RIPE