small medium large xlarge

Generic-user-small
12 Jul 2013, 12:25
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

Generic-user-small
21 Jul 2013, 16:59
Kamil Kieliszczyk (3 posts)

Could you please show me your lib_misc.erl file?

  You must be logged in to comment