Ticket #1714 (accepted defect)
Mediaplayer sometimes does not start up.
|Reported by:||hedora||Owned by:||Abraxa|
|Blocking:||Estimated Completion (week):|
Mediaplayer checks to see if another instance of itself is running at startup. If it detects another instance, it fails to start.
Unfortunately, the current locking code contains some race conditions and other bugs. I marked this "major" because I often have to manually remove lockfiles with the current version, or mediaplayer won't start.
I've attached a patch that obtains a lock based on the idea that "rename()" is atomic. It handles many corner cases the other code misses, but only works if "openmoko-mediaplayer" occurs somewhere in argv of the other process.
The patch corrects the problem for me.
- Owner changed from openmoko-devel to Abraxa
- Status changed from new to accepted