* Sys.signal and an "Invalid argument" exception
@ 2005-09-20 15:25 Paul Argentoff
2005-09-20 16:33 ` [Caml-list] " John Carr
0 siblings, 1 reply; 3+ messages in thread
From: Paul Argentoff @ 2005-09-20 15:25 UTC (permalink / raw)
To: ocaml
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] Sys.signal and an "Invalid argument" exception
2005-09-20 15:25 Sys.signal and an "Invalid argument" exception Paul Argentoff
@ 2005-09-20 16:33 ` John Carr
2005-09-20 17:52 ` Damien Bobillot
0 siblings, 1 reply; 3+ messages in thread
From: John Carr @ 2005-09-20 16:33 UTC (permalink / raw)
To: argentoff; +Cc: ocaml
> Sys.signal Sys.sigkill (Sys.Signal_handle sighandler)
Unix does not allow catching the KILL or STOP signal.
On Solaris, the sigaction() manual warns: "The sig argument
specifies the signal and can be assigned any of the signals
specified in signal(3HEAD) except SIGKILL and SIGSTOP."
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] Sys.signal and an "Invalid argument" exception
2005-09-20 16:33 ` [Caml-list] " John Carr
@ 2005-09-20 17:52 ` Damien Bobillot
0 siblings, 0 replies; 3+ messages in thread
From: Damien Bobillot @ 2005-09-20 17:52 UTC (permalink / raw)
To: John Carr; +Cc: argentoff, ocaml
John Carr wrote :
>> Sys.signal Sys.sigkill (Sys.Signal_handle sighandler)
>
> Unix does not allow catching the KILL or STOP signal.
>
> On Solaris, the sigaction() manual warns: "The sig argument
> specifies the signal and can be assigned any of the signals
> specified in signal(3HEAD) except SIGKILL and SIGSTOP."
Because, SIGKILL is the emergency quit signal, the last way to quit a
process if standard methodes fail.
--
Damien Bobillot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-09-20 17:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-20 15:25 Sys.signal and an "Invalid argument" exception Paul Argentoff
2005-09-20 16:33 ` [Caml-list] " John Carr
2005-09-20 17:52 ` Damien Bobillot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox