Comment 4 for bug 478255

Revision history for this message
OutLikeAShoe (outlikeashoe) wrote :

Oh.. another thing: in your case the regex does not match yet, the path to lrcShow-X.py is "./lrcShow-X.py" and the regex onlye searches for "lrcShow-X.py".

Now.. I think the best thing is to do a step backward, using the lock file, but instead of only creating it, we'll write into that the PID (process identifier) of the running lrcShow-X instance.

So when trying to create another instance we should only check if a process with that PID exists and matches "lrcShow-X" without checking it with a strong regex.