anchor.diff:  handle_info({_Port, {exit_status, Status}}, State) ->
       ns_crash_log:record_crash({port_name(State),
                                  Status,
  -                               misc:intersperse(ringbuffer:to_list(State#state.messages), $\n)}),
  +                               get_death_messages(State)}),
       {stop, {abnormal, Status}, State};
   handle_info({'EXIT', Port, Reason} = Exit, #state{port=Port} = State) ->
       ?log_error("Got unexpected exit signal from port: ~p. Exiting.", [Exit]),
  
positive.code: 
  handle_call(activate, _From, #state{port = undefined,
                                      params = Params} = State) ->
      State2 = State#state{port = port_open(Params)},
      {reply, ok, State2};
  handle_call(activate, _From, State) ->
      {reply, {error, already_active}, State}.
  
negative.code:                        end,
                  State1#state{log_buffer=Buf, log_tref=TRef, dropped=Dropped};
              _ ->
                  %% This makes sure that disk sink's buffer is flushed. Since
                  %% logging to it asynchronous, this is needed for goport's
                  %% flow control to actually do its job.
                  ale:sync_sink(Logger),
                  ale:debug(Logger, Msg),
                  State1
          end,
  
  