Why does Pid = Spawn/3 give a badmatch?
Jeff Crane
jefcrane@REDACTED
Sun Aug 27 20:12:20 CEST 2006
...
userConnPid = spawn(?MODULE, userConnHandler,
[Conn]),
...
userConnHandler(Conn) ->
receive
go_ahead ->
inet:setopts(Conn, [{active, true}]);
_ ->
io:format("tcp_server:debug: userConnHandler did not
receive go_ahead~n")
end,
io:format("tcp_server:debug: userConnHandler exited
cleanly:~p~n",[self()]).
When I get to the spawn/3 I get:
** exited: {{badmatch,<0.144.0>},
[{tcp_server,receive_loop,3},
{erl_eval,do_apply,5},
{shell,exprs,6},
{shell,eval_loop,3}]} **
=ERROR REPORT==== 27-Aug-2006::11:10:46 ===
Error in process <0.136.0> with exit value:
{{badmatch,<0.144.0>},[{tcp_se
rver,receive_loop,3},{erl_eval,do_apply,5},{shell,exprs,6},{shell,eval_loop,3}]}
I dont understand what's badmatching
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the erlang-questions
mailing list