anchor.diff:                          undefined ->
                               %% port is closed
                               Pid ! {tcp_closed, Port},
  -                            warning;
  +                            socket_error;
                           _ ->
                               case sockname(Port) of
                                   {ok, _} ->
  
positive.code: run(Options, _NonOptArgs) ->
      Node = proplists:get_value(node, Options),
      Checks = check_repl(Node),
      case lists:member(critical, Checks) of
          true ->
              critical();
          false ->
              case lists:member(warning, Checks) of
                  true ->
                      warning();
                  false ->
                      okay()
              end
  
negative.code: check_repl_pid(Node, Pid) ->
      case rpc:call(Node, erlang, process_info, [Pid]) of
          undefined ->
              unknown;
          Info ->
              Links = proplists:get_value(links, Info),
              Port = first_port(Links),
  