diff options
| author | Tim Watson <tim@rabbitmq.com> | 2012-05-15 16:53:50 +0100 |
|---|---|---|
| committer | Tim Watson <tim@rabbitmq.com> | 2012-05-15 16:53:50 +0100 |
| commit | 693da5ef02e18c9652396e3335c5bd7e3e0d4889 (patch) | |
| tree | 8c9526a752d7348c2505939e79e853e032c8ae3a | |
| parent | 022dde13ae6f7da2fa6ed31f68cb3046e2ecb295 (diff) | |
| download | rabbitmq-server-git-693da5ef02e18c9652396e3335c5bd7e3e0d4889.tar.gz | |
remove ref to old define; document terminate/1 vs quit/1
| -rw-r--r-- | src/rabbit_misc.erl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rabbit_misc.erl b/src/rabbit_misc.erl index ae20ea839a..cc1417e909 100644 --- a/src/rabbit_misc.erl +++ b/src/rabbit_misc.erl @@ -390,8 +390,11 @@ confirm_to_sender(Pid, MsgSeqNos) -> terminate(Fmt, Args) -> io:format("ERROR: " ++ Fmt ++ "~n", Args), - terminate(?ERROR_CODE). + terminate(1). +%% like quit/1, uses a slower shutdown on windows +%% (required to flush stdout), however terminate/1 also blocks +%% indefinitely until the flush has completed. terminate(Status) -> case os:type() of {unix, _} -> halt(Status); |
