Skip to content

Commit

Permalink
libdirect: Dump event logs upon signal
Browse files Browse the repository at this point in the history
  • Loading branch information
dfbdok committed Dec 31, 2013
1 parent ddd4af4 commit 7ced06c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/direct/signals.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
#include <direct/trace.h>
#include <direct/util.h>

#include <direct/EvLog.h>

D_LOG_DOMAIN( Direct_Signals, "Direct/Signals", "Signal handling" );

#define SIG_CLOSE_SIGHANDLER SIGUNUSED
Expand Down Expand Up @@ -546,6 +548,8 @@ handle_signals( DirectThread *thread,

direct_print_memleaks();

direct_evlog_dump_all();

call_handlers( info.si_signo, NULL );
}
else {
Expand Down

0 comments on commit 7ced06c

Please sign in to comment.