fixed print format in popenpoll
This commit is contained in:
1 parent
b605cf74d2
commit
9a73dcad53
1 file changed
+1
-1
@@ -23,7 +23,7 @@ def pmonitorTest( N=3, seconds=10 ):
|
|||||||
endTime = time() + seconds
|
endTime = time() + seconds
|
||||||
for h, line in pmonitor( popens, timeoutms=500 ):
|
for h, line in pmonitor( popens, timeoutms=500 ):
|
||||||
if h:
|
if h:
|
||||||
print '%s: %s' % ( h.name, line ),
|
print '<%s>: %s' % ( h.name, line ),
|
||||||
if time() >= endTime:
|
if time() >= endTime:
|
||||||
for p in popens.values():
|
for p in popens.values():
|
||||||
p.send_signal( SIGINT )
|
p.send_signal( SIGINT )
|
||||||
|
|||||||
Reference in new issue
Block a user