Permalink
Browse files

Add SIGSEGV processing to send terminating message

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
  • Loading branch information...
Dmitry Shmidt
Dmitry Shmidt committed Feb 5, 2010
1 parent de0b699 commit 619ec148c178c95ca57870e0486456251fecabb8
Showing with 2 additions and 0 deletions.
  1. +2 −0 eloop.c
View
@@ -417,6 +417,8 @@ int eloop_register_signal_terminate(eloop_signal_handler handler,
int ret = eloop_register_signal(SIGINT, handler, user_data);
if (ret == 0)
ret = eloop_register_signal(SIGTERM, handler, user_data);
+ if (ret == 0)
+ ret = eloop_register_signal(SIGSEGV, handler, user_data);
return ret;
}

0 comments on commit 619ec14

Please sign in to comment.