User Tools

Site Tools


cs330_f2016:lab13scaffold

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
cs330_f2016:lab13scaffold [2017/03/22 22:32]
dhart
cs330_f2016:lab13scaffold [2017/04/05 16:42]
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}) 
 +    if pid == :error do 
 + IO.puts(["​Unable to find process ", Atom.to_string(name)]) 
 +    else 
 + Process.exit(pid,​ :kill) 
 +    end 
 +  end 
 +   
 +end
  
 </​file>​ </​file>​
cs330_f2016/lab13scaffold.txt · Last modified: 2021/06/30 23:42 (external edit)