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 SAA16023; Fri, 4 Apr 2003 18:57:08 +0200 (MET DST) 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 SAA16146 for ; Fri, 4 Apr 2003 18:57:07 +0200 (MET DST) Received: from cantina.students.cs.unibo.it (cantina.students.cs.unibo.it [130.136.3.110]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h34Gv6528402 for ; Fri, 4 Apr 2003 18:57:06 +0200 (MET DST) Received: from lordsoth.takhisis.org ([130.136.32.148]) by cantina.students.cs.unibo.it (8.12.4/8.12.4/Debian-2) with ESMTP id h34Gv6wL018044 for ; Fri, 4 Apr 2003 18:57:06 +0200 Received: by lordsoth.takhisis.org (Postfix, from userid 3148) id 816917070; Fri, 4 Apr 2003 18:56:16 +0200 (CEST) Date: Fri, 4 Apr 2003 18:56:16 +0200 From: Stefano Zacchiroli To: Inria Ocaml Mailing List Subject: [Caml-list] OCaml signal handlers (Sys.signal) and C code Message-ID: <20030404165616.GA17379@lordsoth.takhisis.org> Mail-Followup-To: Inria Ocaml Mailing List Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.3i X-Spam: no; 0.00; bononia:01 callback:01 sigalrm:01 bug:01 ocaml:01 handler:01 behaviour:01 external:03 bologna:03 zacchiroli:03 library:03 romney:03 sys:03 unibo:03 zack:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I've noticed that a callback registered using Sys.signal function for the Sys.sigalrm signal isn't called while executing external C code. The execution is delayed until the C code execution is over. Is there any way to avoid this behaviour? (Actually the only solution I see is to modify the C code so that handler is registered there, but I'm working with an external library which is not under my own control) Is this an intended behaviour or a bug? TIA, Cheers. -- Stefano Zacchiroli -- Master in Computer Science @ Uni. Bologna, Italy zack@{cs.unibo.it,debian.org,bononia.it} - http://www.bononia.it/zack/ " I know you believe you understood what you think I said, but I am not sure you realize that what you heard is not what I meant! " -- G.Romney ------------------- 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