anchor.diff:  -include("systest.hrl").
   
   -import(systest_log, [log/2, log/3]).
  -
  -%%
  -%% systest_proc API
  +-import(systest_utils, [as_string/1]).
  +
  +%%
  +% systest_proc API
   %%
   
   init(Proc=#proc{config=Config}) ->
  
positive.code:     end.
  
  log_file(Suffix, Scope, Id, Env, Config) ->
      log_to(Suffix, Scope, Id,
             ?CONFIG(log_dir, Env, systest_env:default_log_dir(Config))).
  
  log_to(Suffix, Scope, Id, Dir) ->
      filename:join(Dir, logfile(Scope, Id) ++ Suffix).
  
  make_exec(FG, Detached, RpcEnabled, Config) ->
      FlagsGroup = atom_to_list(FG),
  
negative.code:                            true ->
                                 LogFile = log_file("-stdio.log", Scope,
                                                    Id, Env, Config),
                                 filelib:ensure_dir(LogFile),
                                 {ok, Fd2} = file:open(LogFile, [write]),
                                 {LogFile, Fd2};
                             false ->
                                 {"console", user}
                         end,
  
      log(framework, "[~p] Reading OS process id from ~p~n", [Id, Port]),
      log(framework, "[~p] RPC Enabled: ~p~n", [Id, RpcEnabled]),
      log(framework, "[~p] StdIO Log: ~s~n", [Id, LogName]),
  
      %% we make a hidden connection by default, so as to protect
      %% any trace handling that is going on, and to avoid 'messing up'
  