English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Sys.signal and an "Invalid argument" exception
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-09-20 (15:25)
From: Paul Argentoff <argentoff@r...>
Subject: Sys.signal and an "Invalid argument" exception
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