Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] dumb question about Unix module
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Nils Goesche <cartan@c...>
Subject: [Caml-list] another dumb question about Unix module
Nils Goesche <cartan@cartan.de> writes:

> Markus Mottl <markus@mail4.ai.univie.ac.at> writes:
> 
> > Nils Goesche schrieb am Donnerstag, den 19. Juli 2001:
> > > Unix.alarm 3 will raise a signal after a few seconds all right.  Now,
> > > how do I catch it?
> > 
> > See module "Sys" and type "signal_behaviour" and function "set_signal"
> > in the manual:
> 
> Now that was fast :-)  Thanks everybody!

Hm.  Isn't this somewhat strange, though:

# Sys.sigalrm;;
- : int = -2

Why not 14 (which is what the handler is called with)?

Regards,
-- 
Nils Goesche
"Don't ask for whom the <CTRL-G> tolls."

PGP key ID 0x42B32FC9

-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr