How to test for missing tail recursive calls in service loops?
Fri Sep 25 22:11:14 CEST 2009
If a service loop is missing a tail recursive call in a receive clause then
the first time a message is sent to the process matching the bad clause the
call the receive succeeds. However subsequent calls will fail as the process
is no longer waiting on a receive due to the missing tail recursive call. Is
there a good way to test for this error besides just make multiple calls to
the service matching the same clause? Is there some way to interrogate the
process to see if it's currently waiting on a receive?
More information about the erlang-questions