diff options
author | Lukas Larsson <[email protected]> | 2012-01-12 14:47:28 +0100 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2012-01-25 14:16:00 +0100 |
commit | 373f3227400d2cabe9c7cf3170b1cad4f5c2488a (patch) | |
tree | bff880c28dfc5dc273715554e945ebb4ef865d6e /lib/os_mon/src/cpu_sup.erl | |
parent | b8b3de6260240c7eb0d7bebec3eeb833bb4ff0d7 (diff) | |
download | otp-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/cpu_sup.erl')
-rw-r--r-- | lib/os_mon/src/cpu_sup.erl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/os_mon/src/cpu_sup.erl b/lib/os_mon/src/cpu_sup.erl index e414e2c10b..34251178ee 100644 --- a/lib/os_mon/src/cpu_sup.erl +++ b/lib/os_mon/src/cpu_sup.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 1997-2010. All Rights Reserved. +%% Copyright Ericsson AB 1997-2012. 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 @@ -764,8 +764,7 @@ port_receive_cpu_util_entries(_, _, Data) -> exit({data_mismatch, Data}). start_portprogram() -> - Command = filename:join([code:priv_dir(os_mon), "bin", "cpu_sup"]), - Port = open_port({spawn, Command}, [stream]), + Port = os_mon:open_port("cpu_sup", [stream]), port_command(Port, ?ping), 4711 = port_receive_uint32(Port, 5000), Port. |