ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/init.C
(Generate patch)

Comparing rxvt-unicode/src/init.C (file contents):
Revision 1.308 by sf-exg, Sun Dec 18 02:14:59 2011 UTC vs.
Revision 1.309 by sf-exg, Tue Dec 20 02:52:39 2011 UTC

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])

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines