Revision 82e0e9f3

View differences:

mininet/node.py
124 124
            opts += 'n'
125 125
        # bash -m: enable job control, i: force interactive
126 126
        # -s: pass $* to shell, and make process easy to find in ps
127
        cmd = [ 'mnexec', opts, 'env', 'PS1=' + chr( 127 ), 'bash',
128
                '--norc', '-mis', 'mininet:' + self.name ]
127
        # prompt is set to sentinel chr( 127 )
128
        os.environ[ 'PS1' ] = chr( 127 )
129
        cmd = [ 'mnexec', opts, 'bash', '--norc', '-mis', 'mininet:' + self.name ]
129 130
        # Spawn a shell subprocess in a pseudo-tty, to disable buffering
130 131
        # in the subprocess and insulate it from signals (e.g. SIGINT)
131 132
        # received by the parent

Also available in: Unified diff