tags 568359 patch
tags 758711 patch
thanks

Hello,

The attached patch fixes this issue by checking for "(deleted)"
instead of just "deleted". Still not perfect, but should handle
most cases.

Regards
Simon
-- 
+ privacy is necessary
+ using gnupg http://gnupg.org
+ public key id: 0x92FEFDB7E44C32F9
diff -Nru debian-goodies-0.63/checkrestart debian-goodies-0.63simon1/checkrestart
--- debian-goodies-0.63/checkrestart	2013-07-05 14:37:50.000000000 +0200
+++ debian-goodies-0.63simon1/checkrestart	2014-08-31 23:29:57.000000000 +0200
@@ -293,7 +293,7 @@
                 last = process.descriptors.pop()
                 # Add it to the list of deleted files if the previous descriptor
                 # was DEL or lsof marks it as deleted
-                if re.compile("DEL").search(last) or re.compile("deleted").search(data) or re.compile("\(path inode=[0-9]+\)$").search(data):
+                if re.compile("DEL").search(last) or re.compile("\(deleted\)").search(data) or re.compile("\(path inode=[0-9]+\)$").search(data):
                     process.files.append(data)
             else:
                 # We discard the previous descriptors and drop it

Attachment: signature.asc
Description: Digital signature

Reply via email to