Tzip : add protection code to prevent segment fault during powering off 93/136693/6 accepted/tizen/unified/20170706.193707 submit/tizen/20170705.132525
authorlokilee73 <changjoo.lee@samsung.com>
Mon, 3 Jul 2017 01:51:06 +0000 (10:51 +0900)
committerlokilee73 <changjoo.lee@samsung.com>
Wed, 5 Jul 2017 06:34:18 +0000 (15:34 +0900)
commit553d30889b57833919598804598c43d7916b9507
treec1dcea8629ce67b9a41c1d774c59ad6ac7dbe3b8
parentb93fe41a27f241bb2f39e5c7ed66ad6b9a23816a
Tzip : add protection code to prevent segment fault during powering off

Segment fault happend by fuse_handle. tzip_server_exit resets it during power off.
But it was being used by fuse_session_loop_mt at the time. So, applied below changes.
1. removed fuse_destroy and reset of fuse_handle in tzip_server_exit to do
   those actions in tzip_thread.
2. added pthread_jon to clean up used resources in tzip_thread

Change-Id: I81dfc74baf1bc8f86136ce0cf604b8915dcd62fe
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
src/tzip/tzip.c