trap_exists and cowboy ws

Roberto Ostinelli <[email protected]>
Newsgroups gmane.comp.lang.erlang.general
Message-ID <CAFXp3LLQEX=pnJOdqx70AtLBkZH7jd3J6vw2v_+z2kj-OtEa0Q@mail.gmail.com>
All,
I'm experiencing a situation where a process spawned after a cowboy
websocket handler upgrade request in init/2 has the process flag trap_exit
set to true, without me doing anything to set it.

This happens in Elixir, not sure if this is related.

def websocket_init(_state) do
    Logger.info("was trapping? #{Process.flag(:trap_exit, true)}")

=> this prints "was trapping? true"

Is this expected behaviour?

Thank you,
r.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.