aboutsummaryrefslogtreecommitdiff
path: root/src/eco_watcher.erl
diff options
context:
space:
mode:
authorNathan Lasseter <Nathan Lasseter nathan@bytemark.co.uk>2014-05-30 13:34:17 +0100
committerNathan Lasseter <Nathan Lasseter nathan@bytemark.co.uk>2014-05-30 13:34:17 +0100
commit08fecb93995728ab53d78beefc329331d79f303f (patch)
tree3ba80e9dede138ce108ad53183cecc47069c736e /src/eco_watcher.erl
parent59cee25c7f863e76bc82cd58b33f6f3b4e13770c (diff)
Added directory structure and Makefile
Diffstat (limited to 'src/eco_watcher.erl')
-rw-r--r--src/eco_watcher.erl16
1 files changed, 16 insertions, 0 deletions
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.