12 Jul 2013, 12:25
Generic-user-small

Mohamed Chenini (2 posts)

Hi,

From Chapter 13. Errors in Concurrent Programs page 204

Getting undefined function lib_misc:on_exit/2 How to fix this?

4> lib_misc:on_exit(Pid, 4> fun(Why) -> 4> io:format(ā€œ~p died with:~p~nā€,[Pid, Why]) 4> end). ** exception error: undefined function lib_misc:on_exit/2

Thanks, Mohamed

21 Jul 2013, 16:59
Generic-user-small

Kamil Kieliszczyk (3 posts)

Could you please show me your lib_misc.erl file?

  You must be logged in to comment