From: Bill Joy Date: Wed, 24 Mar 1982 03:42:51 +0000 (-0800) Subject: require keep-alive X-Git-Tag: BSD-4_1c_2-Snapshot-Development~3827 X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/75a2ff26f6b5383568f5f177b03e21d978b639e0 require keep-alive SCCS-vsn: libexec/telnetd/telnetd.c 4.4 --- diff --git a/usr/src/libexec/telnetd/telnetd.c b/usr/src/libexec/telnetd/telnetd.c index c7ce8c5986..34d8b194fc 100644 --- a/usr/src/libexec/telnetd/telnetd.c +++ b/usr/src/libexec/telnetd/telnetd.c @@ -1,4 +1,4 @@ -static char sccsid[] = "@(#)telnetd.c 4.3 (Berkeley) %G%"; +static char sccsid[] = "@(#)telnetd.c 4.4 (Berkeley) %G%"; /* * Stripped-down telnet server. */ @@ -41,7 +41,7 @@ extern int errno; char line[] = "/dev/ptyp0"; struct sockaddr_in sin = { AF_INET, swab(IPPORT_TELNET) }; -int options = SO_ACCEPTCONN; +int options = SO_ACCEPTCONN|SO_KEEPALIVE; /* * Debugging hooks. Turned on with a SIGTERM.