Permalink
Browse files

Use spawn_executable when starting scripts

Plain spawn will fail if the path in question has spaces in it.
  • Loading branch information...
1 parent d42f37d commit e502cb0ae022905f385751099981c5e57c7249e2 @mxcl mxcl committed with Nov 30, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/playdar_script_resolver.erl
@@ -23,7 +23,7 @@ localonly(Pid) -> gen_server:call(Pid, localonly).
%%
init([Exe]) ->
- Port = open_port({spawn, Exe}, [binary, {packet, 4}, use_stdio]),
+ Port = open_port({spawn_executable, Exe}, [binary, {packet, 4}, use_stdio]),
DefName = <<"undefined">>,
{ok, #state{port=Port,exe=Exe,name=DefName,tt=50,weight=1,localonly=true}}.

0 comments on commit e502cb0

Please sign in to comment.