[erlang-bugs] bug at alarm_handler or at documentation

Dmitry Kolesnikov dmkolesnikov@REDACTED
Wed Jun 25 10:47:31 CEST 2014


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


More information about the erlang-bugs mailing list