uwiger / gproc

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

Properties created by mreg do not removed when process die. #47

Closed shian closed 9 years ago

shian commented 11 years ago

Hi

I use mreg to register some properties for a process. But when process die, the properties still in table gproc.

I dig into code and find in gproc_lib:insert_many that it call to gproc_lib:ensure_monitor and insert a record {Pid, Scope} into table. That will make ets:insert_new in gproc:monitor_me fail and not set up monitor.

uwiger commented 11 years ago

Indeed. Fixed in the latest master. Test case added. Thanks.