Patch for semaphore deadlock bug while plugins installation.
authorTaejeong Lee <taejeong.lee@samsung.com>
Mon, 21 Jan 2013 05:45:58 +0000 (14:45 +0900)
committerTaejeong Lee <taejeong.lee@samsung.com>
Mon, 21 Jan 2013 06:15:18 +0000 (15:15 +0900)
commitc01ffc14e9b808b4eb8d160b6d1bf8bcb34cf299
tree45aea1e6d3e4ef30cc16bb23a9cd07f00acd9eb8
parent20177957c04688ed34224125058af40668e766c5
Patch for semaphore deadlock bug while plugins installation.

[Issue#] N/A
[Problem] wrt-installer does not progress after plugins installation crash occurred on wrt-installer.
[Cause] Semaphore is not deleted when crash occur.
[Solution] Semaphore was replaced to flock api. The lock by flock is release automatically when the owner process is terminated.

Change-Id: I7f345a18a1041c2cb68416a34a2c8b5719e3bc84
src/wrt-installer/plugin_utils.cpp