Codebase list debian-goodies / 45da50b
Do not abort execution if checkrestart is reading the owner's pid of each file and then trying to find the name of the executable from the pid. This fails for pid 1 in vserver environments. Instead of failing checkrestart will report an error and to continue: Javier Fernandez-Sanguino 11 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
492492 self.program = os.readlink('/proc/%d/exe' % self.pid)
493493 except OSError, e:
494494 if e.errno != errno.ENOENT:
495 raise
495 sys.stderr.write('ERROR: Failed to read %d' % self.pid)
496496 self.program = self.cleanFile(self.program)
497497
498498 def cleanFile(self, f):