trap_exists and cowboy ws

Roberto Ostinelli ostinelli@REDACTED
Wed Jul 14 16:30:13 CEST 2021


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20210714/e3af4808/attachment.htm>


More information about the erlang-questions mailing list