Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
kpribylov opened this issue Apr 26, 2019 · 0 comments

Comments

@kpribylov
Copy link
Contributor

kpribylov commented Apr 26, 2019

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

kpribylov added a commit to kpribylov/gproc that referenced this issue Jan 10, 2020
kpribylov added a commit to kpribylov/gproc that referenced this issue Jan 13, 2020
uwiger added a commit that referenced this issue Jan 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant