Lines 2565-2570
Link Here
|
2565 |
writemsg("openpty failed: '%s'\n" % str(e), noiselevel=1) |
2565 |
writemsg("openpty failed: '%s'\n" % str(e), noiselevel=1) |
2566 |
del e |
2566 |
del e |
2567 |
master_fd, slave_fd = os.pipe() |
2567 |
master_fd, slave_fd = os.pipe() |
|
|
2568 |
if got_pty: |
2569 |
import termios |
2570 |
mode = termios.tcgetattr(slave_fd) |
2571 |
mode[1] &= ~termios.OPOST |
2572 |
termios.tcsetattr(slave_fd, termios.TCSANOW, mode) |
2568 |
|
2573 |
|
2569 |
# We must set non-blocking mode before we close the slave_fd |
2574 |
# We must set non-blocking mode before we close the slave_fd |
2570 |
# since otherwise the fcntl call can fail on FreeBSD (the child |
2575 |
# since otherwise the fcntl call can fail on FreeBSD (the child |