diff options
author | Clark Williams <williams@redhat.com> | 2010-06-14 15:07:42 -0500 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2010-06-14 15:07:42 -0500 |
commit | f9fa2c6e06432d93c8264830b61cdf8f94883d3d (patch) | |
tree | cf07da7c34444e50c987bd73a27ccb5f6dc50a23 /rteval/kcompile.py | |
parent | aef0ad6ec0f80c97e03891b97dd8f7221ec64c18 (diff) | |
parent | 2f5cec7a2f45461b7adb96687205fcc0c96dbac8 (diff) | |
download | rteval-f9fa2c6e06432d93c8264830b61cdf8f94883d3d.tar.gz rteval-f9fa2c6e06432d93c8264830b61cdf8f94883d3d.tar.xz rteval-f9fa2c6e06432d93c8264830b61cdf8f94883d3d.zip |
Merge remote branch 'davids/master_ipv4' into work
Diffstat (limited to 'rteval/kcompile.py')
-rw-r--r-- | rteval/kcompile.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/rteval/kcompile.py b/rteval/kcompile.py index 1e0863a..f57a18b 100644 --- a/rteval/kcompile.py +++ b/rteval/kcompile.py @@ -97,6 +97,7 @@ class Kcompile(load.Load): return self.debug("ready to run") self.ready = True + os.close(null) def runload(self): null = os.open("/dev/null", os.O_RDWR) @@ -118,7 +119,10 @@ class Kcompile(load.Load): p = subprocess.Popen(self.args, stdin=null,stdout=null,stderr=null) self.debug("stopping") - os.kill(p.pid, SIGTERM) + if p.poll() == None: + os.kill(p.pid, SIGTERM) + p.wait() + os.close(null) def genxml(self, x): x.taggedvalue('command_line', ' '.join(self.args), {'name':'kcompile'}) |