This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
cs330_f2016:lab13scaffold [2017/03/22 22:32] dhart |
cs330_f2016:lab13scaffold [2017/03/22 23:55] dhart |
||
---|---|---|---|
Line 335: | Line 335: | ||
end | end | ||
+ | defmodule Crasher do | ||
- | + | def crash(ns, name) do | |
+ | IO.puts("Crashing the module...") | ||
+ | pid = GenServer.call(ns, {:resolve, name}) | ||
+ | Process.exit(pid, :kill) | ||
+ | end | ||
+ | |||
+ | end | ||
</file> | </file> |