--- /usr/bin/indicator-weather 2011-11-02 18:20:48.000000000 +0000 +++ indicator-weather 2012-02-04 01:06:23.729208666 +0000 @@ -1903,7 +1903,7 @@ # Make sure it is not a "stale" pidFile pid=open(pidPath, 'r').read().strip() # Check list of running pids, if not running it is stale so overwrite - pidRunning = commands.getoutput('ls /proc | grep %s' % pid) + pidRunning = commands.getoutput('ls -1 /proc | grep ^%s$' % pid) log.debug("SingleInstance: pid running %s" % pidRunning) self.lasterror = True if pidRunning else False else: