-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> _______________________________________________ erlang-questions
> mailing list
erlang-q...@erlang.org
>
http://erlang.org/mailman/listinfo/erlang-questions
>
rpc/2 expects the first arg into the function to be the first element
in the response tuple.
The loop/0 uses self(), which always returns a pid(), not the
registered name.
So you call rpc with an atom, and receive a tuple with a pid(). Those
don't match.
Your call to rpc/2 hangs because the selective receive in rpc/2 never
matches (and you have no timeout clause).
- --
James Aimonetti
Distributed Systems Engineer / DJ MC_
2600hz |
http://2600hz.com
sip:ja...@2600hz.com
tel:
415.886.7905
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird -
http://www.enigmail.net/
iQEcBAEBAgAGBQJRmmGyAAoJENc77s1OYoGgjYkH/jT0bUtnghdmbNo8w0wQnqhL
sRSVuh9wKRLTuPf4x/fyCBHBEC7g6Ii+i9Xdnyc7EnaCfI7vEAx8IRmNJiMnh/Rx
9P1P+48hQmkTjRqj1aBfPR5O0EqezGB/72oPxFK5lN8hLVg0+FOjvRjF2FVezQEt
9gv5kbu7ORla9NJK+9CzGj8pUlx0CQ5ba7pXIU0ib00hf6DA3g8rJmpbS1Fe7+6i
5eYJLvh0/m6F8YjGtrdYIEfCfey7assHMgOIZ+iC2QjcbnqWPZHCbuhsPUz0LbMu
BQOOn3/8NAbstOOMzW7LHjCJ80yLJX9HMHn+bvORTaFVIDy1kUxhDJSUDDP7mSs=
=iAES
-----END PGP SIGNATURE-----
_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions