Date: Tue, 31 Oct 2000 06:42:04 +1000 From: Greg Black <gjb@gbch.net> To: Joe Greco <jgreco@ns.sol.net> Cc: hackers@freebsd.org, ryan@sasknow.com, andrew@ugh.net.au Subject: Re: Logging users out Message-ID: <nospam-39fddd1c0815a61@maxim.gbch.net> In-Reply-To: <200010301514.JAA55088@aurora.sol.net> of Mon, 30 Oct 2000 09:14:04 CST References: <200010301514.JAA55088@aurora.sol.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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 <gjb@acm.org> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?nospam-39fddd1c0815a61>