Storing pids

Niclas Eklund nick@REDACTED
Thu Jan 5 09:09:08 CET 2006


Keep in mind:

http://erlang.se/doc/doc-5.4.12/lib/kernel-2.10.12/doc/html/erlang.html

"pid_to_list(Pid) -> string()

  Returns a list which corresponds to the process Pid. 
    <Warning> This BIF is intended for debugging and for use in the Erlang
    operating system. It should not be used in application programs."

/Nick

On Wed, 4 Jan 2006, Ulf Wiger wrote:
> Den 2006-01-04 19:53:22 skrev Joel Reymont <joelr1@REDACTED>:
> 
> > I can think of converting the pid to list and storing that in the disk  
> > log instead of the pid. Is there a way to get the 3 components of the  
> > pid in Erlang with some BIF? Then I could store them as numbers.
> 
> 1> erlang:pid_to_list(self()).
> "<0.34.0>"
> 
> -- 
> Ulf Wiger
> 

_________________________________________________________________
We Are The ORBs. Resistance Is Futile. Prepare To Be Assimilated!
_________________________________________________________________




More information about the erlang-questions mailing list