Revision e4c82e52 mininet/cli.py

View differences:

mininet/cli.py
209 209
            rest = ' '.join( rest )
210 210
            # Run cmd on node:
211 211
            node.sendCmd( rest, printPid=True )
212
            while True:
212
            while node.waiting:
213 213
                try:
214
                    done, data = node.monitor()
214
                    data = node.monitor()
215 215
                    info( '%s' % data )
216
                    if done:
217
                        break
218 216
                except KeyboardInterrupt:
219 217
                    node.sendInt()
220 218
        else:

Also available in: Unified diff