iv_event: Allow for events that retrigger themselves.
iv_event: Allow for events that retrigger themselves.

When running the list of triggered events, only run the events that
were triggered before we started running the list, so that we don't
loop endlessly in iv_event_run_pending_events() if there are events
that retrigger themselves.

Signed-off-by: Viktor Juhasz <0505ada5e2d4ae2226e83f9efc13af77b5074f81@balabit.hu>
Signed-off-by: Balazs Scheidler <c9ced0bffa833fad400e0759f75a89a845bcc267@balabit.hu>
Signed-off-by: Lennert Buytenhek <8858498612e3a522354216649776e3032dcb7e5b@wantstofly.org>

buytenh/ivykis,buytenh/ivykis