Revision 9a73dcad examples/popenpoll.py

View differences:

examples/popenpoll.py
23 23
    endTime = time() + seconds
24 24
    for h, line in pmonitor( popens, timeoutms=500 ):
25 25
        if h:
26
            print '%s: %s' % ( h.name, line ),
26
            print '<%s>: %s' % ( h.name, line ),
27 27
        if time() >= endTime:
28 28
            for p in popens.values():
29 29
                p.send_signal( SIGINT )

Also available in: Unified diff