From 1b094d72ffc56069c72f17c7edd673dbbfe47e39 Mon Sep 17 00:00:00 2001
From: Sverker Eriksson
Date: Tue, 23 Feb 2016 21:05:03 +0100
Subject: 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.
---
erts/doc/src/erlang.xml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
(limited to 'erts/doc')
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%
On many platforms, the OS supports only status
- codes 0-255.
+ codes 0-255. A too large status code will be truncated by clearing
+ the high bits.
For integer Status, the Erlang runtime system
closes all ports and allows async threads to finish their
operations before exiting. To exit without such flushing, use
--
cgit v1.2.3