aboutsummaryrefslogtreecommitdiffstats
path: root/erts/doc/src/erlang.xml
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2016-02-23 21:05:03 +0100
committerSverker Eriksson <[email protected]>2016-02-24 17:04:01 +0100
commit1b094d72ffc56069c72f17c7edd673dbbfe47e39 (patch)
tree45675d9bc82b8496765bee32831de2501471ebae /erts/doc/src/erlang.xml
parent56090db3ea417157a749bdd810fc61d117493f1f (diff)
downloadotp-1b094d72ffc56069c72f17c7edd673dbbfe47e39.tar.gz
otp-1b094d72ffc56069c72f17c7edd673dbbfe47e39.tar.bz2
otp-1b094d72ffc56069c72f17c7edd673dbbfe47e39.zip
erts: Make erlang:halt() accept bignums as Status
Just mask away the high bits to get a more tolerant erlang:halt that behaves the same on 32 and 64 bit architectures.
Diffstat (limited to 'erts/doc/src/erlang.xml')
-rw-r--r--erts/doc/src/erlang.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/erts/doc/src/erlang.xml b/erts/doc/src/erlang.xml
index c37ed3bea5..7926157fa5 100644
--- a/erts/doc/src/erlang.xml
+++ b/erts/doc/src/erlang.xml
@@ -1794,7 +1794,8 @@ os_prompt% </pre>
</item>
</taglist>
<note><p>On many platforms, the OS supports only status
- codes 0-255.</p></note>
+ codes 0-255. A too large status code will be truncated by clearing
+ the high bits.</p></note>
<p>For integer <c><anno>Status</anno></c>, the Erlang runtime system
closes all ports and allows async threads to finish their
operations before exiting. To exit without such flushing, use