Re: bug at alarm_handler or at documentation

Anthony Ramine <[email protected]>
Newsgroups gmane.comp.lang.erlang.bugs
Message-ID <[email protected]>
I would say the bug is in the code, if I had 10 alarms for low memory during the night, I would like to clear them all at once once I fixed the problem.

What does the OTP team say?

-- 
Anthony Ramine

Le 25 juin 2014 à 10:47, Dmitry Kolesnikov <[email protected]> a écrit :

> Hello,
> 
> The alarm_handler documentation says:
> http://www.erlang.org/doc/man/alarm_handler.html
> 
> — CLIP — 
> clear_alarm(AlarmId) -> void()
> 
> Clears all alarms with id AlarmId.
> — CLIP — 
> 
> but code does not clears all alarms, it clears the last one
> 
> https://github.com/erlang/otp/blob/maint/lib/sasl/src/alarm_handler.erl#L83
> 
> — CLIP —
> {ok, lists:keydelete(AlarmId, 1, Alarms)};
> — CLIP — 
> 
> I can patch alarm_handler if needed but I think the bug in documentation?
> 
> Best Regards, 
> Dmitry
> _______________________________________________
> erlang-bugs mailing list
> [email protected]
> http://erlang.org/mailman/listinfo/erlang-bugs

_______________________________________________
erlang-bugs mailing list
[email protected]
http://erlang.org/mailman/listinfo/erlang-bugs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.