<p dir="ltr">The global proposition does not follow the general philosophy of Erlang where there is absolutely no security. But if a private process need to be done, only the creator can communicate with this process. This imply that nobody can trace what is done in it. So tracing need to be disabled,  like does process_flag sensitive actually. Only messages from parent creator has to be treated,  other messages received but ignored. Exit messages are coming from parent so this is not a problem. <br>
In parent the pidname could be stored in process dictionary as far it is only local.</p>
<p dir="ltr">Ab esse ad posse valet, a posse ad esse non valet consequentia</p>
<p dir="ltr">Le 3 mars 2016 12:57 AM, Valentin Micic <valentin@pixie.co.za> a écrit :<br>
</p>
<blockquote><p dir="ltr">><br>
</p>
</blockquote>
<p dir="ltr">> Non sequitur!<br>
><br>
> On 03 Mar 2016, at 12:55 AM, Éric Pailleau wrote:<br>
><br>
</p>
<blockquote><p dir="ltr">>> I suppose that process_flag(sensitive,  true) was also invented a 1st April too, then.<br>
</p>
</blockquote>
<p dir="ltr">>><br>
>> Le 2 mars 2016 11:36 PM, Valentin Micic <<a href="mailto:valentin@pixie.co.za">valentin@pixie.co.za</a>> a écrit :<br>
</p>
<blockquote><p dir="ltr">>>><br>
</p>
</blockquote>
<p dir="ltr">>>> On 03 Mar 2016, at 12:17 AM, Éric Pailleau wrote:<br>
>>><br>
</p>
<blockquote><p dir="ltr">>>>> And for local pidname,  a simple put() can store the spawned Pid in parent process dictionary and retrieve with get().<br>
</p>
</blockquote>
<p dir="ltr">>>>><br>
>>>> Le 2 mars 2016 11:12 PM, Éric Pailleau <<a href="mailto:eric.pailleau@wanadoo.fr">eric.pailleau@wanadoo.fr</a>> a écrit :<br>
</p>
<blockquote><p dir="ltr">>>>>><br>
</p>
</blockquote>
<p dir="ltr">>>>>> Hi,<br>
>>>>> Could not this be solved by spawn_priv/x functions ? I mean functions that do same than spawn/x but spawned process accept only messages from parent process ?<br>
>>>>> No need to change things in process registry then.<br>
>>><br>
>>> Good luck supporting/debugging the code that may register itself, but able to receive messages only from the process that spawned it.<br>
>>> Did April 1st arrived early this year?<br>
>>><br>
><br>
</p>