Skip to content

Commit

Permalink
i#2157 re-attach: Ensure drmgr events get reinstalled (#2704)
Browse files Browse the repository at this point in the history
Take care to set the registered_fault bool back to false after
event unregister so that it can be re-registered later.

Issue #2157
  • Loading branch information
Carrotman42 authored and fhahn committed Dec 4, 2017
1 parent f05c243 commit cd083a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ext/drmgr/drmgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,10 @@ drmgr_exit(void)

if (bb_event_count > 0)
dr_unregister_bb_event(drmgr_bb_event);
if (registered_fault)
if (registered_fault) {
dr_unregister_restore_state_ex_event(drmgr_restore_state_event);
registered_fault = false;
}
#ifdef WINDOWS
drmgr_cls_exit();
#endif
Expand Down

0 comments on commit cd083a1

Please sign in to comment.