From owner-freebsd-hackers Mon Oct 30 12:42:16 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from gw.gbch.net (gw.gbch.net [203.24.22.66]) by hub.freebsd.org (Postfix) with SMTP id 0B5A937B479 for ; Mon, 30 Oct 2000 12:42:12 -0800 (PST) Received: (qmail 88715 invoked by uid 1001); 31 Oct 2000 06:42:04 +1000 X-Posted-By: GBA-Post 2.06 15-Sep-2000 X-PGP-Fingerprint: 5A91 6942 8CEA 9DAB B95B C249 1CE1 493B 2B5A CE30 Message-Id: Date: Tue, 31 Oct 2000 06:42:04 +1000 From: Greg Black To: Joe Greco Cc: hackers@freebsd.org, ryan@sasknow.com, andrew@ugh.net.au Subject: Re: Logging users out References: <200010301514.JAA55088@aurora.sol.net> In-reply-to: <200010301514.JAA55088@aurora.sol.net> of Mon, 30 Oct 2000 09:14:04 CST Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I wrote a little line program to do a revoke(), it was basically > > int main(int argc, char *argv[]) { revoke(argv[1]); } > > Now this doesn't kill a darn thing. And you should be aware of it! But it > does forcibly "close" any open fd's pointing at the tty in question, and > most programs will get the hint and go away. Not all programs, and that can lead to all sorts of problems with processes that never die. There are many stories of this happening with vi, for example. > For some uses, especially predictable uses, this is probably a lot simpler > and a lot more foolproof. Simple: yes. Foolproof: definitely no. -- Greg Black To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message