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

Colm Dougan <>
Thu Jun 19 18:05:43 CEST 2008


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



More information about the erlang-questions mailing list