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.
相关问题
- How can I write a SIG{__DIE__} handler that does n
- Is “new” in Erlang part of the official standard a
- What cause info can be readily collected in an iOS
- how to create a keep-alive process in Erlang
- “kill -15” triggers the sigaction code but does no
相关文章
- how to handle os.system sigkill signal inside pyth
- How do I modify a record in erlang?
- Check active timers in Erlang
- undefined function maps:to_json/1
- onBackPressed to kill a handler within an activity
- How to convert datetime() to timestamp() in Erlang
- Handler.postDelayed running for extra time
- Is it possible to make an arbitrary program ignore
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.
I stumbled upon this: http://erlang.org/doc/man/kernel_app.html#erl_signal_server. I have not seen it formally announced anywhere, but I might have missed the announcement.