diff --git a/examples/popenpoll.py b/examples/popenpoll.py index 7e13420..30ca4fc 100755 --- a/examples/popenpoll.py +++ b/examples/popenpoll.py @@ -24,9 +24,9 @@ def pmonitorTest( N=3, seconds=10 ): for h, line in pmonitor( popens, timeoutms=500 ): if h: print '%s: %s' % ( h.name, line ), - if time() >= endTime: - for p in popens.values(): - p.send_signal( SIGINT ) + if time() >= endTime: + for p in popens.values(): + p.send_signal( SIGINT ) net.stop() if __name__ == '__main__':