[erlang-questions] Signal handling (TERM, INT etc)
Thu Jun 19 18:59:42 CEST 2008
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:
> 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?
> erlang-questions mailing list
More information about the erlang-questions