anchor.diff:  %% @doc Trap unknown casts
   handle_cast(Message, State) ->
       {stop, {unknown_cast, Message}, State}.
  -
  -
   
   
   %% @doc Reading a line from the inotifywait program. Sets a timer to
  
positive.code: %%                     ignore               |
  %%                     {stop, Reason}
  %% @doc Initiates the server.
  init(Context) ->
      process_flag(trap_exit, true),
      {ok, #state{context=Context, port=start_inotify()}}.
  
  
  %% @doc Trap unknown calls
  
negative.code:     {noreply, State#state{timers=proplists:delete(Filename, Timers)}};
  
  handle_info({'EXIT', Port, _}, State=#state{port=Port}) ->
      %% restart after 5 seconds
      {noreply, State, 5000};
  
  handle_info(timeout, State=#state{context=Context}) ->
      ?zInfo("Starting inotify file monitor.", Context),
      {noreply, start_inotify(State)};
  
  handle_info(_Info, State) ->
      ?DEBUG(_Info),
  