git://git.onelab.eu
/
sface.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
c1e7dc6
)
tolerate EINTR
author
smbaker
<smbaker@fc8clean.lan>
Wed, 26 Oct 2011 06:57:02 +0000
(23:57 -0700)
committer
smbaker
<smbaker@fc8clean.lan>
Wed, 26 Oct 2011 06:57:02 +0000
(23:57 -0700)
sface/sfiprocess.py
patch
|
blob
|
history
diff --git
a/sface/sfiprocess.py
b/sface/sfiprocess.py
index
fac19db
..
35f0ca9
100644
(file)
--- a/
sface/sfiprocess.py
+++ b/
sface/sfiprocess.py
@@
-64,7
+64,15
@@
class SfiProcess(QObject):
output = self.process.readAllStandardOutput()
self.output = self.output + output
if config.debug:
output = self.process.readAllStandardOutput()
self.output = self.output + output
if config.debug:
- print output
+ try:
+ print output
+ except IOError, e:
+ if (e.errno == 4):
+ # XXX why is this happening??
+ print "*** caught EINTR"
+ else:
+ raise
+
def processStandardError(self):
print self.process.readAllStandardError()
def processStandardError(self):
print self.process.readAllStandardError()