<div dir="ltr">In this sense, gproc:monitor/2 works like erlang:monitor/2, which also stays silent if the object is alive and well.<div><br></div><div>Perhaps the easiest thing to do is to simply look up the name right after calling monitor()?</div>
<div><br></div><div>BR,</div><div>Ulf W</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-05-28 18:04 GMT+02:00 Camille Troillard <span dir="ltr"><<a href="mailto:lists@tuli.pe" target="_blank">lists@tuli.pe</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">OK, so it seems gproc:monitor(Key, follow) works, however if the name is already registered the message {gproc, registered, Ref, Key} is not sent. I would have expected the message to be sent since {gproc, unreg, Ref, Key} is sent when the name is not registered. Is this a bug?<br>

<div class="HOEnZb"><div class="h5"><br>
<br>
On 28 May 2014, at 17:15, Camille Troillard <<a href="mailto:lists@tuli.pe">lists@tuli.pe</a>> wrote:<br>
<br>
> Hello,<br>
><br>
> I would like to take action when a name gets registered under gproc.<br>
><br>
> I understood I could call gproc:monitor(Key, follow) during initialization but my process does not get notified of the name availability. Therefore I had to replace that call to gproc:nb_wait, and then monitor the process in the callback handler. I wish I could follow the former approach.<br>

><br>
> Can someone explain the usage pattern of gproc:monitor(_, follow)?<br>
> I am trying to understand why this would not work.<br>
> Thanks!<br>
><br>
> Camille<br>
> _______________________________________________<br>
> erlang-questions mailing list<br>
> <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
> <a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br></div>