summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/malloc.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-12-30 23:22:31 +0000
committerbrian <brian@FreeBSD.org>1997-12-30 23:22:31 +0000
commit69deecd8aea7a74b6e9ef42c6303ad23632a82d8 (patch)
treeb2e40f86f789400523459ff0026c495fb72f083d /lib/libc/stdlib/malloc.c
parent00293d1a14f9cd4b46d4324f7fda1336685fbdf1 (diff)
downloadFreeBSD-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
OpenPOWER on IntegriCloud