diff options
author | brian <brian@cvs.openbsd.org> | 1997-12-30 23:22:38 +0000 |
---|---|---|
committer | brian <brian@cvs.openbsd.org> | 1997-12-30 23:22:38 +0000 |
commit | 03ee54c664c4a96a7212f4470c80f94e20dc0661 (patch) | |
tree | a2fb16f6f767b016c4839341f0d3271be7f15fe7 /sys/arch | |
parent | ce3b4ed49613151b44741b8330d77f5b688df6ea (diff) |
Allow "set device" to close the open modem if we're in
interactive mode.
Use `netfd' in fcntl() and tc[gs]etattr() calls rather than
the hard coded descriptor 0.
Use _FILENO constants from unistd.h
This un-breaks things after my recent `close(0)' in interactive
mode.
Close STDIN_FILENO, and open _PATH_TTY O_RDONLY as `netfd'. This
has the effect of allowing `show route' to output more than about
a page of data (on FreeBSD, not OpenBSD....). I have no idea why,
except that it was a direct consequence of the tcsetattr() in
TtyCommandMode(). My previous fix (closing descriptor 0) `fixed'
this because all calls to tcsetattr() failed :-(
Diffstat (limited to 'sys/arch')
0 files changed, 0 insertions, 0 deletions