summaryrefslogtreecommitdiffstats
path: root/socket.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-03-14 06:33:55 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-03-14 06:33:55 -0700
commitfeb85af5ec767988ce6e5414e5cae1ebc15b0f74 (patch)
tree553c87c0dd1d6465153c2babe34d09deea9ef31b /socket.c
parent2326bc176a85e40310f170a2450d4f71c78c9469 (diff)
downloadtxr-feb85af5ec767988ce6e5414e5cae1ebc15b0f74.tar.gz
txr-feb85af5ec767988ce6e5414e5cae1ebc15b0f74.tar.bz2
txr-feb85af5ec767988ce6e5414e5cae1ebc15b0f74.zip
All stdio streams get line buffering with i mode.
* socket.c (open_sockfd): We no longer need to set stream sockets to line buffered mode here; it's done in set_mode_props. * stream.c (set_mode_props): If the mode specifies interactive, streams open for writing are also switched to line buffering. * txr.1: Documented under open-file, and open-socket.
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/socket.c b/socket.c
index ae07c816..17949a7c 100644
--- a/socket.c
+++ b/socket.c
@@ -829,7 +829,6 @@ val open_sockfd(val fd, val family, val type, val mode_str_in)
fd, num(errno), string_utf8(strerror(errno)), nao);
}
- setvbuf(f, (char *) NULL, _IOLBF, 0);
return set_mode_props(m, make_sock_stream(f, family, type));
}
}