… | |
… | |
1607 | if (pty->pty >= 0) |
1607 | if (pty->pty >= 0) |
1608 | { |
1608 | { |
1609 | if (getfd_hook) |
1609 | if (getfd_hook) |
1610 | pty->pty = (*getfd_hook) (pty->pty); |
1610 | pty->pty = (*getfd_hook) (pty->pty); |
1611 | |
1611 | |
1612 | if (pty->pty < 0 || fcntl (pty->pty, F_SETFL, O_NONBLOCK)) |
1612 | if (pty->pty < 0) |
1613 | rxvt_fatal ("unusable pty-fd filehandle, aborting.\n"); |
1613 | rxvt_fatal ("unusable pty-fd filehandle, aborting.\n"); |
1614 | } |
1614 | } |
1615 | } |
1615 | } |
1616 | else |
1616 | else |
1617 | #endif |
1617 | #endif |
1618 | if (!pty->get ()) |
1618 | if (!pty->get ()) |
1619 | rxvt_fatal ("can't initialize pseudo-tty, aborting.\n"); |
1619 | rxvt_fatal ("can't initialize pseudo-tty, aborting.\n"); |
|
|
1620 | |
|
|
1621 | fcntl (pty->pty, F_SETFL, O_NONBLOCK); |
1620 | |
1622 | |
1621 | struct termios tio = def_tio; |
1623 | struct termios tio = def_tio; |
1622 | |
1624 | |
1623 | #ifndef NO_BACKSPACE_KEY |
1625 | #ifndef NO_BACKSPACE_KEY |
1624 | if (rs[Rs_backspace_key][0] && !rs[Rs_backspace_key][1]) |
1626 | if (rs[Rs_backspace_key][0] && !rs[Rs_backspace_key][1]) |