[PATCH] Add SIGSEGV processing to send terminating message

Dmitry Shmidt dimitrysh
Mon Feb 8 11:29:51 PST 2010


Signed-off-by: Dmitry Shmidt <dimitrysh at google.com>
---
 src/utils/eloop.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/utils/eloop.c b/src/utils/eloop.c
index ac99989..badab89 100644
--- a/src/utils/eloop.c
+++ b/src/utils/eloop.c
@@ -473,6 +473,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;
 }

-- 
1.6.2.2

--00504502b770ea8f8b047f1be316
Content-Type: application/octet-stream; 
	name="0001-Add-SIGSEGV-processing-to-send-terminating-message.patch"
Content-Disposition: attachment; 
	filename="0001-Add-SIGSEGV-processing-to-send-terminating-message.patch"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_g5fnugzc0

RnJvbSBjOGU0OGU5ZTMzZTE4NGY0NWMxYzk1ZjU0MDNkYjhjZDRjM2U0ZTFkIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBEbWl0cnkgU2htaWR0IDxkaW1pdHJ5c2hAZ29vZ2xlLmNvbT4K
RGF0ZTogTW9uLCA4IEZlYiAyMDEwIDExOjI5OjUxIC0wODAwClN1YmplY3Q6IFtQQVRDSF0gQWRk
IFNJR1NFR1YgcHJvY2Vzc2luZyB0byBzZW5kIHRlcm1pbmF0aW5nIG1lc3NhZ2UKClNpZ25lZC1v
ZmYtYnk6IERtaXRyeSBTaG1pZHQgPGRpbWl0cnlzaEBnb29nbGUuY29tPgotLS0KIHNyYy91dGls
cy9lbG9vcC5jIHwgICAgMiArKwogMSBmaWxlcyBjaGFuZ2VkLCAyIGluc2VydGlvbnMoKyksIDAg
ZGVsZXRpb25zKC0pCgpkaWZmIC0tZ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