Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > e68864066b1c2342f8c6568e41210012 > files > 4

Spawning-0.9.5-2.fc15.src.rpm

--- src/spawning/spawning_controller.py	2010-05-01 16:49:23.000000000 -0400
+++ src/spawning/spawning_controller.py	2010-07-13 13:09:05.000000000 -0400
@@ -184,8 +184,10 @@ 
                 time.asctime()))
 
         if self.config.get('pidfile'):
-            with open(self.config.get('pidfile'), 'w') as fd:
-                fd.write('%s\n' % self.controller_pid)
+            fd = open(self.config.get('pidfile'), 'w')
+            #with open(self.config.get('pidfile'), 'w') as fd:
+            fd.write('%s\n' % self.controller_pid)
+            fd.close()
 
         spawning.setproctitle("spawn: controller " + self.args.get('argv_str', ''))