distributed-process icon indicating copy to clipboard operation
distributed-process copied to clipboard

A bad `CreateHandle` can crash the supervisor process

Open hyperthunk opened this issue 7 years ago • 0 comments

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.

hyperthunk avatar Nov 09 '18 10:11 hyperthunk