aboutsummaryrefslogtreecommitdiffstats
path: root/lib/runtime_tools
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2013-07-11 12:59:40 +0200
committerBjörn-Egil Dahlberg <[email protected]>2013-07-15 17:01:36 +0200
commit5576be6a5a874dbeb2b12014b5834542756e72b3 (patch)
tree0f4073767d851be539ad67b73a6ad2d98bab9049 /lib/runtime_tools
parentd3d5908a516f4d01ae80534b9ecf336b266d1788 (diff)
downloadotp-5576be6a5a874dbeb2b12014b5834542756e72b3.tar.gz
otp-5576be6a5a874dbeb2b12014b5834542756e72b3.tar.bz2
otp-5576be6a5a874dbeb2b12014b5834542756e72b3.zip
Fix system_information get_beam_name/0
os:getenv("EMU") is not set for windows, use "beam" instead.
Diffstat (limited to 'lib/runtime_tools')
-rw-r--r--lib/runtime_tools/src/system_information.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/runtime_tools/src/system_information.erl b/lib/runtime_tools/src/system_information.erl
index 5c6516f72f..b0f03126b9 100644
--- a/lib/runtime_tools/src/system_information.erl
+++ b/lib/runtime_tools/src/system_information.erl
@@ -472,4 +472,8 @@ get_beam_name() ->
false -> "";
true -> ".smp"
end,
- os:getenv("EMU") ++ Type ++ Flavor.
+ Beam = case os:getenv("EMU") of
+ false -> "beam";
+ Value -> Value
+ end,
+ Beam ++ Type ++ Flavor.