Differences From Artifact [b2775501ad]:
- File unix/uxpty.c — part of check-in [7db7c53371] at 2007-07-01 10:47:31 on branch trunk — Implement Marcin Bulandra's suggestion of only automatically updating the port number in the GUI when the connection type is changed if the current port number is the standard one for the current protocol. It's not perfect, but it should make the common case of tabbing through the Session panel easier when starting non-SSH connections on odd ports. (user: jacob size: 26369)
To Artifact [bdb3540503]:
- File unix/uxpty.c — part of check-in [8b7c139db9] at 2007-10-02 16:07:52 on branch trunk — As far as I can see (at least in NetBSD) O_NONBLOCK and FIONBIO are equivalent, except that O_NONBLOCK is standardised and FIONBIO isn't. In consequence, replace our only use of FIONBIO with O_NONBLOCK. Inspired by Jonathan H N Chin, who had problems with this on Solaris. (user: ben size: 26451)
| ︙ | ︙ | |||
356 357 358 359 360 361 362 |
strncpy(pty->name, ptsname(pty->master_fd), FILENAME_MAX-1);
#endif
{
/*
* Set the pty master into non-blocking mode.
*/
| | | > > | 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 |
strncpy(pty->name, ptsname(pty->master_fd), FILENAME_MAX-1);
#endif
{
/*
* Set the pty master into non-blocking mode.
*/
int fl;
fl = fcntl(pty->master_fd, F_GETFL);
if (fl != -1 && !(fl & O_NONBLOCK))
fcntl(pty->master_fd, F_SETFL, fl | O_NONBLOCK);
}
if (!ptys_by_fd)
ptys_by_fd = newtree234(pty_compare_by_fd);
add234(ptys_by_fd, pty);
}
|
| ︙ | ︙ |