[erlang-questions] Recreating a PID from a log file.

Vik Olliver <>
Wed Oct 29 01:48:21 CET 2008


Yes, is for debugging. I needed the PID field to retrieve a message to
find out what the heck was going on.

Vik :v)
On Wed, 2008-10-29 at 13:30 +1300, Richard O'Keefe wrote:
> The Erlang documentation for the 'erlang' module has
> a big scary red box warning:
> 
>      This BIF is intended for debugging
>      and for use in the Erlang operating system.
>      It should not be used in application programs.
> 
> The big problem is that just because you have
>         <0.24454.8>
> in a log and
>         Pid = list_to_pid("<0.24454.8>")
> succeeds and gives you a "process id",
>   - it need not be the id of ANY process (now)
>   - if it is the id of some process, it need not be
>     the one you think it is.
> 
> If you are using this for debugging, fine,
> but trust it about as much as you would trust a
> cardboard ladder.
> __________________




More information about the erlang-questions mailing list