[erlang-questions] Signal handling (TERM, INT etc)

Maxim Treskin <>
Thu Jun 19 18:59:42 CEST 2008


Hello

Handling of UNIX-signal is not portable feature through many OS. So,
you must write OS-specified driver for this operations.

On 19/06/2008, Colm Dougan <> wrote:
> Hi,
>
> I don't seem to be able to find any way to trap/handle OS signals in
> erlang (TERM, INT etc).   Am I missing something or is this just "not
> the erlang way", and if the latter then is there some alternative?
> I'd like to be able to trap a TERM signal and shutdown cleanly  The
> best I could come up with was to start my erlang process from a shell
> script which itself trapped signals and then sent the erlang node a
> rpc message to stop cleanly.  Is there a better way?
>
> Thanks,
> Colm
> _______________________________________________
> erlang-questions mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-questions
>


-- 
Maxim Treskin



More information about the erlang-questions mailing list