r16841 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r16840‎ | r16841 | r16842 >
Date:15:12, 7 October 2006
Author:tstarling
Status:old
Tags:
Comment:
bug fixes
Modified paths:
  • /trunk/ganglia_metrics/MANIFEST.in (modified) (history)
  • /trunk/ganglia_metrics/gmetricd.py (modified) (history)

Diff [purge]

Index: trunk/ganglia_metrics/gmetricd.py
@@ -116,6 +116,7 @@
117117 m = portRegex.match(line)
118118 if m != None:
119119 port = m.group(1)
 120+gmondFile.close()
120121
121122 if addr == None or port == None:
122123 sys.stderr.write("Unable to determine multicast address\n")
@@ -164,6 +165,9 @@
165166 sys.stdin.close()
166167 sys.stdout.close()
167168 sys.stderr.close()
 169+ os.close(0)
 170+ os.close(1)
 171+ os.close(2)
168172
169173 os.setsid()
170174 signal.signal(signal.SIGTERM, termHandler)
Index: trunk/ganglia_metrics/MANIFEST.in
@@ -1 +1,2 @@
22 include init.d/gmetricd
 3+include *.py