[erlang-questions] Question about behaviours in Erlang/OTP
Yves S. Garret
yoursurrogategod@REDACTED
Mon Jul 14 01:59:36 CEST 2014
Hello,
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...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140713/3ac650ad/attachment.htm>
More information about the erlang-questions
mailing list