trap_exists and cowboy ws

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

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"was trapping? #{Process.flag(:trap_exit, true)}")

=> this prints "was trapping? true"

Is this expected behaviour?

Thank you,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the erlang-questions mailing list