diff options
author | brian <brian@FreeBSD.org> | 1997-12-30 23:22:31 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-12-30 23:22:31 +0000 |
commit | 69deecd8aea7a74b6e9ef42c6303ad23632a82d8 (patch) | |
tree | b2e40f86f789400523459ff0026c495fb72f083d /lib/libc/stdlib/malloc.c | |
parent | 00293d1a14f9cd4b46d4324f7fda1336685fbdf1 (diff) | |
download | FreeBSD-src-69deecd8aea7a74b6e9ef42c6303ad23632a82d8.zip FreeBSD-src-69deecd8aea7a74b6e9ef42c6303ad23632a82d8.tar.gz |
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 'lib/libc/stdlib/malloc.c')
0 files changed, 0 insertions, 0 deletions