Split api_calls.py and api.py to make the documentation of the XMLRPC calls
[nodemanager.git] / logger.py
index fa13dd9..a3cff1e 100644 (file)
--- a/logger.py
+++ b/logger.py
@@ -1,3 +1,6 @@
+#
+# Something relevant
+#
 """A very simple logger that tries to be concurrency-safe."""
 
 import os, sys
@@ -21,7 +24,7 @@ def log(msg):
 
 def log_call(*args):
     log('running command %s' % ' '.join(args))
-    try: subprocess.call(args)
+    try: subprocess.call(args, close_fds=True)
     except: log_exc()
 
 def log_exc():