diff options
author | Lukas Larsson <[email protected]> | 2012-01-25 14:50:48 +0100 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2012-01-25 14:50:48 +0100 |
commit | 92b5a1ad679dec79ae40cee4a144f6da614433e1 (patch) | |
tree | 848b3973460a3bbfd6acb12e8c3689e9a81562d4 /lib/os_mon/src/memsup.erl | |
parent | 1436244c50e214c3de656c52022881bc8a27ca37 (diff) | |
parent | 8b129dda86fe28b943180153561423bbb7957582 (diff) | |
download | otp-92b5a1ad679dec79ae40cee4a144f6da614433e1.tar.gz otp-92b5a1ad679dec79ae40cee4a144f6da614433e1.tar.bz2 otp-92b5a1ad679dec79ae40cee4a144f6da614433e1.zip |
Merge branch 'maint'
* maint:
Look for port in priv/bin/arch/ as well as priv/bin/
Fix on_load handling in modules loaded by code:load_binary/3
Diffstat (limited to 'lib/os_mon/src/memsup.erl')
-rw-r--r-- | lib/os_mon/src/memsup.erl | 3 |
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 |