Date: Mon, 25 Jan 1999 10:43:01 -0800
Message-Id: <199901251843.KAA23637@kronstadt.transbay.net>
From: Ian T Zimmerman <itz@transbay.net>
To: caml-list@inria.fr
Subject: Catching Break?
Why doesn't this work:
let main() =
Sys.catch_break true;
try Unix.kill (Unix.getpid()) Sys.sigint
with Sys.Break -> prerr_endline "CAUGHT!"; exit 0
let _ = main()
This program just prints "Fatal error: Uncaught exception Sys.Break"
as if the try block weren't there. Am I overlooking something really
obvious?
Ocaml 2.01, Unix (Linux 2.0), libc5, linuxthreads.
-- Ian T Zimmerman <itz@transbay.net> I came to the conclusion that what was wrong about the guillotine was that the condemned man had no chance at all, absolutely none. Albert Camus, _The Outsider_
This archive was generated by hypermail 2b29 : Sun Jan 02 2000 - 11:58:18 MET