Skip to content

Commit

Permalink
corrected code for loading driver
Browse files Browse the repository at this point in the history
  • Loading branch information
richcarl authored and Eric Merritt committed Aug 10, 2010
1 parent 6609b73 commit d829c82
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions chapter_12/port_driver/json_parser/src/jp_server.erl
Expand Up @@ -102,9 +102,7 @@ create_port() ->
PrivDir ->
case erl_ddll:load(PrivDir, "jp_driver") of
ok -> ok;
{error, already_loaded} -> ok;
Other -> exit(Other)
end,
open_port({spawn, filename:join([PrivDir, "parser"])},
[binary])
open_port({spawn, "jp_driver"}, [binary])
end.

0 comments on commit d829c82

Please sign in to comment.