aboutsummaryrefslogtreecommitdiffstats
path: root/lib/os_mon/src/os_mon_sysinfo.erl
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2012-01-12 14:47:28 +0100
committerLukas Larsson <[email protected]>2012-01-25 14:16:00 +0100
commit373f3227400d2cabe9c7cf3170b1cad4f5c2488a (patch)
treebff880c28dfc5dc273715554e945ebb4ef865d6e /lib/os_mon/src/os_mon_sysinfo.erl
parentb8b3de6260240c7eb0d7bebec3eeb833bb4ff0d7 (diff)
downloadotp-373f3227400d2cabe9c7cf3170b1cad4f5c2488a.tar.gz
otp-373f3227400d2cabe9c7cf3170b1cad4f5c2488a.tar.bz2
otp-373f3227400d2cabe9c7cf3170b1cad4f5c2488a.zip
Look for port in priv/bin/arch/ as well as priv/bin/
Diffstat (limited to 'lib/os_mon/src/os_mon_sysinfo.erl')
-rw-r--r--lib/os_mon/src/os_mon_sysinfo.erl6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/os_mon/src/os_mon_sysinfo.erl b/lib/os_mon/src/os_mon_sysinfo.erl
index 5d12bd95d1..080885d5d6 100644
--- a/lib/os_mon/src/os_mon_sysinfo.erl
+++ b/lib/os_mon/src/os_mon_sysinfo.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 1997-2009. All Rights Reserved.
+%% Copyright Ericsson AB 1997-2011. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -108,9 +108,7 @@ code_change(_OldVsn, State, _Extra) ->
%%----------------------------------------------------------------------
start_portprogram() ->
- Command =
- filename:join([code:priv_dir(os_mon),"bin","win32sysinfo.exe"]),
- Port = open_port({spawn,Command}, [{packet,1}]),
+ Port = os_mon:open_port("win32sysinfo.exe", [{packet,1}]),
receive
{Port, {data, [?OK]}} ->
Port;