<div dir="ltr">Kenneth , thank you very much!<br>I just read the timer.erl again, I see in one handle_call cluase, if the Time and Pid format error, the  {error, badarg} reply will send to the caller. <br>please pardon my careless.<br>
:)<br><br><div class="gmail_quote">2008/10/16 Kenneth Lundin <span dir="ltr"><<a href="mailto:kenneth.lundin@gmail.com">kenneth.lundin@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
The timer server does never call exit/1.<br>
The timer server is never supposed to crash, it will be a shutdown of<br>
the whole E-node if it does.<br>
The function timer:send_interval(Time,ReceiverPid,Message) will return<br>
{ok,Ref} if everything is ok and<br>
{error,badarg} if Time is not an integer, if ReceiverPid is not a pid.<br>
<br>
<br>
/Kenneth Erlang/OTP team, Ericsson<br>
<br>
2008/10/16 litao cheng <<a href="mailto:litaocheng@gmail.com">litaocheng@gmail.com</a>>:<br>
<div><div></div><div class="Wj3C7c">> Hi, everyone.<br>
> When I use timer:send_interval/3, I have some puzzle with the return values:<br>
> {ok, TRef}, {error, Reason}.<br>
> I see the timer.erl, I know that the timer module is implented by gen_server<br>
> behaviour, the exported functions such as send_after, apply_after and so on,<br>
> are just call the gen_server:call/2. the gen_server:call/2 may invoke<br>
> erlang:exit/1 with some reasons,<br>
> but in the timer.erl the timer:req/2 don't catch the exit signal. So I<br>
> wonder how the timer:send_interval/3 return {error, Reason}. Is it a bug?<br>
><br>
> BS!<br>
> litaocheng<br>
><br>
</div></div>> _______________________________________________<br>
> erlang-questions mailing list<br>
> <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
> <a href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br>
><br>
</blockquote></div><br></div>