How to test for missing tail recursive calls in service loops?

Jeremy Raymond jeraymond@REDACTED
Fri Sep 25 22:11:14 CEST 2009


Hello,

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?


Thanks,

Jeremy


More information about the erlang-questions mailing list