aboutsummaryrefslogtreecommitdiffstats
path: root/lib/os_mon/src/memsup.erl
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2012-01-25 14:50:03 +0100
committerLukas Larsson <[email protected]>2012-01-25 14:50:03 +0100
commit8b129dda86fe28b943180153561423bbb7957582 (patch)
treecf8bbbaa38085e9c9d848b3e629b1e8d2b2e8624 /lib/os_mon/src/memsup.erl
parent25a98803743f25f36377790edc4b6315639aade7 (diff)
parent373f3227400d2cabe9c7cf3170b1cad4f5c2488a (diff)
downloadotp-8b129dda86fe28b943180153561423bbb7957582.tar.gz
otp-8b129dda86fe28b943180153561423bbb7957582.tar.bz2
otp-8b129dda86fe28b943180153561423bbb7957582.zip
Merge branch 'lukas/os_mon/work_in_source_tree/OTP-9883' into maint
* lukas/os_mon/work_in_source_tree/OTP-9883: Look for port in priv/bin/arch/ as well as priv/bin/
Diffstat (limited to 'lib/os_mon/src/memsup.erl')
-rw-r--r--lib/os_mon/src/memsup.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/os_mon/src/memsup.erl b/lib/os_mon/src/memsup.erl
index ba07a529bc..49533da1f7 100644
--- a/lib/os_mon/src/memsup.erl
+++ b/lib/os_mon/src/memsup.erl
@@ -802,8 +802,7 @@ port_init() ->
port_idle(Port).
start_portprogram() ->
- Command = filename:join([code:priv_dir(os_mon), "bin", "memsup"]),
- open_port({spawn, Command}, [{packet, 1}]).
+ os_mon:open_port("memsup",[{packet,1}]).
%% The connected process loops are a bit awkward (several different
%% functions doing almost the same thing) as