Permalink
Browse files

better detection of the erlang version. broken for pre-R11.

  • Loading branch information...
1 parent 2986867 commit 29db6747b1e05b6a7bf9094b393670c27e3911f3 mats cronqvist committed Mar 10, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/gtknode.erl
View
@@ -128,7 +128,10 @@ start_gtknode(Name) ->
open_port({spawn,make_cmd(Name)},[stderr_to_stdout,exit_status]).
make_cmd(Name) ->
- ErlDistributionVsn="13",
+ ErlDistributionVsn=
+ try hd(string:tokens(erlang:system_info(otp_release),"RB"))
+ catch _:_ -> 12
+ end,
[Node,Host] = string:tokens(atom_to_list(node()),"@"),
RegName = atom_to_list(Name),
Cookie = atom_to_list(erlang:get_cookie()),

0 comments on commit 29db674

Please sign in to comment.