monitoring: modified posix lock to shared
authorSangho Park <sangho.p@samsung.com>
Wed, 27 Jan 2016 08:36:24 +0000 (17:36 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Fri, 29 Jan 2016 06:24:56 +0000 (15:24 +0900)
commit62dec5b1762ceb56e22d56bd4ecafa2bdc97554a
tree3e169b8ab09ff6223aa54a090e5d7091e83b478c
parent82ede39782955b2ac596e6a26f916b4c82c6f5bd
monitoring: modified posix lock to shared

Current posix file locking method has two problems.
1. An emulator can think that other emulator is running even
though no emulator runs and just the manager locks the file.
2. An emulator manager can think that an emulator is running
even though no emulator runs and just other manager locks the file.

Changing the lock by shared can eliminate the above 2 problems if
the emulator checks the type of lock. With qemu patch, the problems
can be avoided.

Change-Id: Id24b51a241890da781546186e2efb9f1b7346a48
Signed-off-by: Sangho Park <sangho.p@samsung.com>
src/org/tizen/emulator/manager/vms/monitor/PosixLockFileMonitor.java