From owner-freebsd-questions Mon Jan 10 18:24:19 2000 Delivered-To: freebsd-questions@freebsd.org Received: from dorifer.heim3.tu-clausthal.de (dorifer.heim3.tu-clausthal.de [139.174.243.252]) by hub.freebsd.org (Postfix) with ESMTP id 1E109153D2 for ; Mon, 10 Jan 2000 18:23:39 -0800 (PST) (envelope-from olli@dorifer.heim3.tu-clausthal.de) Received: (from olli@localhost) by dorifer.heim3.tu-clausthal.de (8.9.3/8.9.3) id DAA70411; Tue, 11 Jan 2000 03:23:36 +0100 (CET) (envelope-from olli) Date: Tue, 11 Jan 2000 03:23:36 +0100 (CET) Message-Id: <200001110223.DAA70411@dorifer.heim3.tu-clausthal.de> From: Oliver Fromme To: freebsd-questions@FreeBSD.ORG Reply-To: freebsd-questions@FreeBSD.ORG Subject: Re: Giving a sighandler more information X-Newsgroups: list.freebsd-questions In-Reply-To: <85e18k$1dhm$1@atlantis.rz.tu-clausthal.de> User-Agent: tin/1.4.1-19991201 ("Polish") (UNIX) (FreeBSD/3.4-19991219-STABLE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Laurence Berland wrote in list.freebsd-questions: > I'm writing an ftp daemon, and it needs to speak the telnet protocol. > That means I need to handle SIGURG for synchs and such. I'm wondering > what the best way is to get further information to the handle. Is there > a way other than global variables (which would make my code look messier > than it already is)? I'm afraid there is no other way than using global variables. Be sure to declare them as ``volatile sig_atomic_t''. > recommendation for a network programming book? I've heard good things > about the Stevens book ( > http://www1.fatbrain.com/asp/bookinfo/bookinfo.asp?theisbn=013490012X > ... Yes, Stevens book is a good recommendation. Regards Oliver -- Oliver Fromme, Leibnizstr. 18/61, 38678 Clausthal, Germany (Info: finger userinfo:olli@dorifer.heim3.tu-clausthal.de) "In jedem Stück Kohle wartet ein Diamant auf seine Geburt" (Terry Pratchett) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message