In R14 monitor() was only accessible under erlang:monitor() name.
authorStanislaw Klekot <dozzie@jarowit.net>
Sun, 7 Sep 2014 21:25:07 +0000 (23:25 +0200)
committerStanislaw Klekot <dozzie@jarowit.net>
Sun, 7 Sep 2014 21:25:07 +0000 (23:25 +0200)
src/haircut_bot_restarter.erl

index edbb87f..403f600 100644 (file)
@@ -161,7 +161,7 @@ monitor_all([{Name, Pid} | Rest] = _Processes) ->
       MonitorRef = make_ref(),
       self() ! {'DOWN', MonitorRef, process, undefined, undefined};
     _ when is_pid(Pid) ->
-      MonitorRef = monitor(process, Pid)
+      MonitorRef = erlang:monitor(process, Pid)
   end,
   Record = {MonitorRef, Name},
   [Record | monitor_all(Rest)].