uwiger / gproc

Extended process registry for Erlang
Apache License 2.0
1.07k stars 232 forks source link

Monitor stops working if one of the processes monitoring the same name terminates #172

Closed kpribylov closed 4 years ago

kpribylov commented 5 years ago

Hi,

In case if there're two monitoring processes for the SAME name and one of them terminates, monitoring stops working for the remaining

Simple test (gproc 0.8.0 + erlang console):

Key = {n,l,somename}. P = spawn(fun() -> gproc:reg(Key, true), receive _ -> ok end end).

gproc:monitor(Key). spawn(fun() -> gproc:monitor(Key) end). exit(P, kill).

There is no {gproc,unreg,...} message here Everything is fine if the second monitoring process keeps working

Thanks