diff options
author | Alexandru Scvortov <alexandru@rabbitmq.com> | 2011-10-31 11:59:15 +0000 |
---|---|---|
committer | Alexandru Scvortov <alexandru@rabbitmq.com> | 2011-10-31 11:59:15 +0000 |
commit | 0deaef415b40936db65ffc2527b684d18489062a (patch) | |
tree | 3c9137985969630572ada4ba0d2d3468a51d9619 | |
parent | 277e7a4ba9ac5e4bda1f32adbf2561c3bcf2c8bc (diff) | |
download | rabbitmq-server-0deaef415b40936db65ffc2527b684d18489062a.tar.gz |
cosmetic
-rw-r--r-- | src/rabbit_prelaunch.erl | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/rabbit_prelaunch.erl b/src/rabbit_prelaunch.erl index bde16db8..dc0cb5ce 100644 --- a/src/rabbit_prelaunch.erl +++ b/src/rabbit_prelaunch.erl @@ -284,14 +284,11 @@ terminate(Status) -> names(Hostname) -> Self = self(), process_flag(trap_exit, true), - Pid = spawn_link(fun () -> - Res = net_adm:names(Hostname), - Self ! {names, Res} - end), + Pid = spawn_link(fun () -> Self ! {names, net_adm:names(Hostname)} end), timer:exit_after(?EPMD_TIMEOUT, Pid, timeout), Res = receive - {names, Names} -> Names; - {'EXIT', Pid, Why} -> {error, Why} + {names, Names} -> Names; + {'EXIT', Pid, Reason} -> {error, Reason} end, process_flag(trap_exit, false), Res. |