From 089e52cc5a6168fcda79f6c153d0ac0cf1db13bd Mon Sep 17 00:00:00 2001 From: Boram Park Date: Mon, 11 Jul 2016 16:25:24 +0900 Subject: [PATCH] fix seg.fault of tdm-test-server Change-Id: I09aa654347fd72b46e264a68b4e935f30b63f8af --- tools/tdm_test_server.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/tdm_test_server.c b/tools/tdm_test_server.c index 932e20d..aec7aee 100644 --- a/tools/tdm_test_server.c +++ b/tools/tdm_test_server.c @@ -601,6 +601,7 @@ interpret_args(tdm_test_server *data) TDM_EXIT_IF_FAIL(l != NULL); LIST_INITHEAD(&l->prop_list); LIST_ADDTAIL(&l->link, &o->layer_list); + l->data = data; l->o = o; l->idx = j; @@ -653,6 +654,7 @@ interpret_args(tdm_test_server *data) TDM_EXIT_IF_FAIL(l != NULL); LIST_INITHEAD(&l->prop_list); LIST_ADDTAIL(&l->link, &o->layer_list); + l->data = data; l->o = o; l->idx = i; l->is_primary = 1; @@ -849,7 +851,6 @@ main(int argc, char *argv[]) tdm_error ret; signal(SIGINT, exit_test); /* 2 */ - signal(SIGSEGV, exit_test); /* 11 */ signal(SIGTERM, exit_test); /* 15 */ memset(data, 0, sizeof * data); -- 2.7.4