From 08fecb93995728ab53d78beefc329331d79f303f Mon Sep 17 00:00:00 2001 From: Nathan Lasseter Date: Fri, 30 May 2014 13:34:17 +0100 Subject: Added directory structure and Makefile --- src/eco_watcher.erl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/eco_watcher.erl (limited to 'src/eco_watcher.erl') diff --git a/src/eco_watcher.erl b/src/eco_watcher.erl new file mode 100644 index 0000000..ce14ab4 --- /dev/null +++ b/src/eco_watcher.erl @@ -0,0 +1,16 @@ +-module(eco_watcher). +-export([watcher/1]). + +watcher(Super) -> + receive + {From, stop} -> + From ! {ok, stopped}, + {ok, stopped}; + {error, notock, A, B} -> + Super ! {error, notock, A, B}, + io:format("~p~n", [{error, notock, A, B}]), + watcher(Super); + Msg -> + io:format("~p~n", [Msg]), + watcher(Super) + end. -- cgit v1.2.1