need to check process name in already-running check

Bug #553909 reported by Dmitriy Geels
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
goldendict (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: goldendict

Sometimes goldendict doesn't start, complaining, that another instance is running already.
Removing file ~/.goldendict/pid helps.

This bug is not reproducible every time, looks like sometimes goldendict is able to determine whether another instance is running or not.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: goldendict 0.9.1~git20091117-1ubuntu1
ProcVersionSignature: Ubuntu 2.6.32-19.28-generic 2.6.32.10+drm33.1
Uname: Linux 2.6.32-19-generic x86_64
Architecture: amd64
Date: Fri Apr 2 16:17:00 2010
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
ProcEnviron:
 PATH=(custom, user)
 LANG=ru_RU.UTF-8
 SHELL=/bin/bash
SourcePackage: goldendict

Revision history for this message
Dmitriy Geels (dmig) wrote :
Dmitriy Geels (dmig)
Changed in goldendict (Ubuntu):
status: New → Confirmed
Revision history for this message
Dmitriy Geels (dmig) wrote :

Goldendict should check, whether process with id from ~/.goldendict/pid is running and it is goldendict instance. Or goldendict should try to write-lock existing pid file before writing to it.

Revision history for this message
Dmitriy Geels (dmig) wrote :

Currently main() has check for already running process with same PID as in pid file, but it doesn't check, if that process is goldendict.

summary: - goldendict doesn't start, if terminated abnormally
+ need to check process name in already-running check
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.