Do not call pthread_cancel in notification manager 79/149979/1 accepted/tizen/unified/20170920.081248 submit/tizen/20170918.114609
authorSemun Lee <semun.lee@samsung.com>
Thu, 14 Sep 2017 01:24:21 +0000 (10:24 +0900)
committerSemun Lee <semun.lee@samsung.com>
Thu, 14 Sep 2017 01:24:21 +0000 (10:24 +0900)
commitfe60dc37172fcc46d1969884149b54972d9c2185
treee1fb7075e7da707ecce55922e00e796e01aa67d2
parente27736d6ccabaf037fda57d936ff66d6ddca75e7
Do not call pthread_cancel in notification manager

pthread_cancel may lead unpredictable thread synchronization problem
when it is not used properly.
pthread_cancel in notification manager may lead deadlock because
it terminates __dp_notification_manager thread asynchronously.

refer to https://www.securecoding.cert.org/confluence/display/c/POS47-C.+Do+not+use+threads+that+can+be+canceled+asynchronously

Change-Id: I39c00a882df5cfede647e0d456c03eeb57c8971e
Signed-off-by: Semun Lee <semun.lee@samsung.com>
provider/download-provider-notification-manager.c