Openmoko Bug #1714: Mediaplayer sometimes does not start up.

Openmoko Public Trac bugs at
Fri Aug 1 09:51:04 CEST 2008

#1714: Mediaplayer sometimes does not start up.
 Reporter:  hedora   |       Owner:  openmoko-devel
     Type:  defect   |      Status:  new           
 Priority:  normal   |   Milestone:                
Component:  unknown  |     Version:                
 Severity:  major    |    Keywords:                
 Blocking:           |   Blockedby:                
 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[0] of
 the other process.

 The patch corrects the problem for me.

Ticket URL: <> <>
openmoko trac

More information about the devel mailing list