[erlang-questions] Question about behaviours in Erlang/OTP
Yves S. Garret
Mon Jul 14 01:59:36 CEST 2014
I'm looking at some code that was written where a user uses a behaviour of
gen_server and then uses a process_flag(trap_exit, true). To me, this
seems like a supervisor behaviour would work better.
What would be a better approach in this case? To declare this module a
supervisor? Is it possible (sensible? logical?) to give the same module
gen_server and supervisor behaviours?
Thanks in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions