summaryrefslogtreecommitdiff
path: root/src/rabbit_control_main.erl
diff options
context:
space:
mode:
authorEmile Joubert <emile@rabbitmq.com>2013-07-31 12:30:25 +0100
committerEmile Joubert <emile@rabbitmq.com>2013-07-31 12:30:25 +0100
commit2c32f6cdb2c84d1324645423f132214ebf4f1031 (patch)
tree10ece9e2779f6cd59911518bccdf541a44578599 /src/rabbit_control_main.erl
parente2f502dcebfef16beffd6f308d6471d2d47bee4d (diff)
downloadrabbitmq-server-2c32f6cdb2c84d1324645423f132214ebf4f1031.tar.gz
Add space for clink os cmds separately
Diffstat (limited to 'src/rabbit_control_main.erl')
-rw-r--r--src/rabbit_control_main.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_control_main.erl b/src/rabbit_control_main.erl
index c195ace5..4be77f82 100644
--- a/src/rabbit_control_main.erl
+++ b/src/rabbit_control_main.erl
@@ -602,8 +602,8 @@ process_up(Pid) ->
run_ps(Pid) =:= 0
end},
{win32, fun () ->
- Res = os:cmd(" tasklist /nh /fi \"pid eq " ++
- Pid ++ "\" 2>&1"),
+ Cmd = "tasklist /nh /fi \"pid eq " ++ Pid ++ "\" ",
+ Res = os:cmd(rabbit_misc:win32_cmd(Cmd ++ "2>&1")),
case re:run(Res, "erl\\.exe", [{capture, none}]) of
match -> true;
_ -> false