From owner-freebsd-stable Thu Jul 20 18: 8:19 2000 Delivered-To: freebsd-stable@freebsd.org Received: from mail2.uniserve.com (mail2.uniserve.com [204.244.156.10]) by hub.freebsd.org (Postfix) with ESMTP id B1CCA37B81E for ; Thu, 20 Jul 2000 18:08:15 -0700 (PDT) (envelope-from tom@uniserve.com) Received: from shell.uniserve.ca ([204.244.186.218]) by mail2.uniserve.com with esmtp (Exim 3.13 #1) id 13FRIQ-000Ern-00; Thu, 20 Jul 2000 18:08:10 -0700 Date: Thu, 20 Jul 2000 18:08:06 -0700 (PDT) From: Tom X-Sender: tom@shell.uniserve.ca To: Jared Chenkin Cc: freebsd-stable@freebsd.org Subject: Re: your mail In-Reply-To: <200007210052.e6L0qm658557@voyager.bxscience.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 20 Jul 2000, Jared Chenkin wrote: > In message <200007202035.e6KKZ9V14881@dna.tsolab.org>, "Dan Ts'o" writes: > >> Does su have some kind of a built-in nohup option? If I su to root and > >> execute a command or shell script and then disconnect (ie, quit the terminal > >> software I'm running, which in my case is an ssh session) whatever I was > >> last running su'd as root continues to run until I manually kill it. > > Random question, but do you actually log out or do you just close the > ssh window? I notice that very often users on my system simply close > their telnet windows and the process does not die (namely the shell). > It became a real annoyance when telnetd(8) would start turning away > successful logins, complaining that all ttys were used up. Good Telnet clients should actually close the socket before quiting, and good OSes will automatically close any sockets left open when an application quits. Either of these would eliminate the problem you see. However, if a client crashes TCP keepalives should eventually timeout the socket on the server. There is a sysctl that forces TCP keepalives for all sockets that can be handy for services that don't necessarily use them. However, the telnetd service on FreeBSD uses keepalives by default. Tom Uniserve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message