diff --git a/mininet/cli.py b/mininet/cli.py index 3fbedd1..5843e95 100644 --- a/mininet/cli.py +++ b/mininet/cli.py @@ -319,8 +319,8 @@ class CLI( Cmd ): nodePoller = poll() nodePoller.register( node.stdout ) bothPoller = poll() - bothPoller.register( self.stdin ) - bothPoller.register( node.stdout ) + bothPoller.register( self.stdin, POLLIN ) + bothPoller.register( node.stdout, POLLIN ) if self.isatty(): # Buffer by character, so that interactive # commands sort of work