anchor.diff:                      {ok, #state{port=Port, logging=?DBG_FLAG_OFF, logger=PortLogger}}
               end
       end.
  +
  +-ifdef(WITH_VALGRIND).
  +portstart(Executable, PortOptions) ->
  +    Args = proplists:get_value(args, PortOptions),
  +    NewArgs = ["--leak-check=yes", Executable | Args],
  +    NewExecutable = "/usr/bin/valgrind",
  +    NewPortOptions = lists:keyreplace(args, 1, PortOptions, {args, NewArgs}),
  +    io:format(user, "NewExecutable ~p, NewPortOptions = ~p~n", [NewExecutable, NewPortOptions]),
  +    open_port({spawn_executable, NewExecutable}, NewPortOptions).
  +-else.
  +portstart(Executable, PortOptions) ->
  +    open_port({spawn_executable, Executable}, PortOptions).
  +-endif.
   
   handle_call(close, _From, #state{port=Port} = State) ->
       try
  
positive.code:         LdLibPath -> LdLibPath ++ PathSepStr
      end ++ OciDir,
  
      LibPathVal = lists:last(re:split(re:replace(NewLibPath, "~", "~~", [global, {return, list}]), "[:;]", [{return, list}])),
      ?Info(PortLogger, "~s = ...~s", [LibPath, LibPathVal]),
      PortOptions = [ {packet, 4}
                    , binary
  
negative.code:                            , integer_to_list(ListenPort)]}
                    , {env, [{LibPath, NewLibPath}]}
                    ],
      case (catch portstart(Executable, PortOptions)) of
          {'EXIT', Reason} ->
              ?Error(PortLogger, "oci could not open port: ~p", [Reason]),
              {stop, Reason};
  