[yum-commits] needs-restarting.py
skvidal at osuosl.org
skvidal at osuosl.org
Tue Mar 29 17:21:22 UTC 2011
needs-restarting.py | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 699f30a5e1a0f6ae2b341242e9991963fde54342
Author: Seth Vidal <skvidal at fedoraproject.org>
Date: Tue Mar 29 13:20:49 2011 -0400
clean up the nulls from the delimiters in proc
diff --git a/needs-restarting.py b/needs-restarting.py
index 2c41948..6bc883f 100755
--- a/needs-restarting.py
+++ b/needs-restarting.py
@@ -129,6 +129,8 @@ def main(args):
except OSError, e:
print "Couldn't access process information for %s: %s" % (pid, str(e))
continue
+ # proc cmdline is null-delimited so clean that up
+ cmdline = cmdline.replace('\000', ' ')
print '%s : %s' % (pid, cmdline)
return 0
More information about the Yum-commits
mailing list