diff options
author | David Wragg <dpw@lshift.net> | 2010-02-15 12:44:56 +0000 |
---|---|---|
committer | David Wragg <dpw@lshift.net> | 2010-02-15 12:44:56 +0000 |
commit | 94e397534d1ae82f20d113a1235c62864b9c01a5 (patch) | |
tree | 5e7336ad983950af780a463c4d759d83984f623f | |
parent | 65869973d6f21a5165de6257c8461401fcefa61f (diff) | |
download | rabbitmq-server-bug22361.tar.gz |
Avoid the use of spawn_executable on non-Windows platformsbug22361
The Windows-only issue addressed in bug22282 requires the use of
spawn_executable, which was introduced in OTP R13. But for other
platforms we'd like to continue to support R12, and so we should stick
to plain spawn.
-rw-r--r-- | src/rabbit_multi.erl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rabbit_multi.erl b/src/rabbit_multi.erl index bfafa6ff..8c898498 100644 --- a/src/rabbit_multi.erl +++ b/src/rabbit_multi.erl @@ -222,9 +222,8 @@ run_rabbitmq_server() -> {win32, fun run_rabbitmq_server_win32/0}]). run_rabbitmq_server_unix() -> - FullPath = getenv("RABBITMQ_SCRIPT_HOME") ++ "/rabbitmq-server", - erlang:open_port({spawn_executable, FullPath}, - [{arg0, FullPath}, {args, ["-noinput"]}, nouse_stdio]). + CmdLine = getenv("RABBITMQ_SCRIPT_HOME") ++ "/rabbitmq-server -noinput", + erlang:open_port({spawn, CmdLine}, [nouse_stdio]). run_rabbitmq_server_win32() -> Cmd = filename:nativename(os:find_executable("cmd")), |