diff options
author | Patrik Nyblom <[email protected]> | 2013-07-30 11:39:35 +0200 |
---|---|---|
committer | Patrik Nyblom <[email protected]> | 2013-07-30 11:39:35 +0200 |
commit | 397caf87b39380f5517954320f25fdf9b97d0c90 (patch) | |
tree | d3f246e7cc7465ec4c2e59db57e768825e7dd175 /erts/emulator/beam/bif.c | |
parent | ecdf2b1505451612d9c163ef918b948fd8948bac (diff) | |
download | otp-397caf87b39380f5517954320f25fdf9b97d0c90.tar.gz otp-397caf87b39380f5517954320f25fdf9b97d0c90.tar.bz2 otp-397caf87b39380f5517954320f25fdf9b97d0c90.zip |
Change default of erlang:halt/2 to the documented
Bug reported by Jose Valim on the erlang-bugs mailing list:
erlang:halt(0,[]) does not flush as advertised in the documentation.
Should be the same as erlang:halt(0,[{flush,true}]), but is in fact
the same as erlang:halt(0,[{flush,false}]).
Diffstat (limited to 'erts/emulator/beam/bif.c')
-rw-r--r-- | erts/emulator/beam/bif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/bif.c b/erts/emulator/beam/bif.c index ff237b6a78..755c5e6882 100644 --- a/erts/emulator/beam/bif.c +++ b/erts/emulator/beam/bif.c @@ -3934,7 +3934,7 @@ BIF_RETTYPE halt_2(BIF_ALIST_2) { Sint code; Eterm optlist = BIF_ARG_2; - int flush = 0; + int flush = 1; for (optlist = BIF_ARG_2; is_list(optlist); |