Alex Rivera | Logout

How can I handle SIGINT in Erlang?

Asked 2011-02-23T08:36:55.823
11

I know how to create custom signal handlers in Java, Python, Ruby, Perl, and Lisp, thanks to Google and a plethora of tutorials. I can't find online how to create handlers for SIGINT, SIGTERM, HUP, etc. in Erlang.

Edit
Report

1 Answer

8

You can not. OS signals handled exclusively by Erlang VM. I guess OS signals can be handled in a driver but it can interfere with the VM signal handler so use it on your own risk.

answered 2011-02-23T15:57:15.923

Your Answer