You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code that handles RunClosure spawns a process to deal with initialising the starting the child. The code in wrapHandle, on the other hand, unpacks and executes the Closure (SupervisorPid -> Process(ProcessId, Message)) in the supervisor's own process, which could crash and bring down the managed process itself.
Since this is a common branch - executing every time we spawn a child using that ToChildStart constructor - we should be more careful.
The text was updated successfully, but these errors were encountered:
The code that handles
RunClosure
spawns a process to deal with initialising the starting the child. The code inwrapHandle
, on the other hand, unpacks and executes theClosure (SupervisorPid -> Process(ProcessId, Message))
in the supervisor's own process, which could crash and bring down the managed process itself.Since this is a common branch - executing every time we spawn a child using that
ToChildStart
constructor - we should be more careful.The text was updated successfully, but these errors were encountered: