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: %% support functions
  %%====================================================================
  
  
  start_inotify() ->
      os:cmd("killall inotifywait"),
      Args = ["-e", "modify,create", "-m", "-r",
              filename:join(os:getenv("ZOTONIC"), "src"),
              filename:join(os:getenv("ZOTONIC"), "priv/sites"),
              filename:join(os:getenv("ZOTONIC"), "modules")
              |
              string:tokens(os:cmd("find " ++ z_utils:os_escape(os:getenv("ZOTONIC")) ++ " -type l"), "\n")],
      erlang:open_port({spawn_executable, "/usr/bin/inotifywait"}, [{args, Args}, {line, 1024}]).
  
  
  verb("MODIFY") -> modify;
  verb("CREATE") -> create.
  
negative.code: %%                     ignore               |
  %%                     {stop, Reason}
  %% @doc Initiates the server.
  init([Executable, Context]) ->
      process_flag(trap_exit, true),
      State = #state{context=Context, executable=Executable},
      {ok, State, 0}.
  
  
  %% @doc Trap unknown calls
  