summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Tools/__init__.py
diff options
context:
space:
mode:
authorJoey Hagedorn <hagedorn@mcs.anl.gov>2007-01-08 20:06:54 +0000
committerJoey Hagedorn <hagedorn@mcs.anl.gov>2007-01-08 20:06:54 +0000
commit702bfa4d6840b36077ecef0253491a63b98869f4 (patch)
tree72e5eec30d44dc44aee367c1f6698c0cd728504b /src/lib/Client/Tools/__init__.py
parent186a18e40c8b51445b6f7d7ce290c3a38f03be57 (diff)
downloadbcfg2-702bfa4d6840b36077ecef0253491a63b98869f4.tar.gz
bcfg2-702bfa4d6840b36077ecef0253491a63b98869f4.tar.bz2
bcfg2-702bfa4d6840b36077ecef0253491a63b98869f4.zip
First working version of launchd support!
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2630 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client/Tools/__init__.py')
-rw-r--r--src/lib/Client/Tools/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/Client/Tools/__init__.py b/src/lib/Client/Tools/__init__.py
index bebe0a9d7..20a8812a5 100644
--- a/src/lib/Client/Tools/__init__.py
+++ b/src/lib/Client/Tools/__init__.py
@@ -39,7 +39,10 @@ class executor:
runpipe = readonlypipe(command, bufsize=16384)
output = []
- runpipe.fromchild.flush()
+ try:#macosx doesn't like this
+ runpipe.fromchild.flush()
+ except IOError:
+ pass
line = runpipe.fromchild.readline()
while line:
if len(line) > 0: