From owner-freebsd-bugs Sun Jan 16 13: 5:15 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id C711814DDD; Sun, 16 Jan 2000 13:05:08 -0800 (PST) (envelope-from des@flood.ping.uio.no) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id WAA05844; Sun, 16 Jan 2000 22:05:03 +0100 (CET) (envelope-from des@flood.ping.uio.no) To: Garrett Wollman Cc: , pekkas@netcore.fi, freebsd-bugs@FreeBSD.ORG Subject: Re: bin/15414: syslogd -ss disables all network logging functions References: <200001140147.RAA23443@freefall.freebsd.org> <200001141624.LAA85230@khavrinen.lcs.mit.edu> From: Dag-Erling Smorgrav Date: 16 Jan 2000 22:05:02 +0100 In-Reply-To: Garrett Wollman's message of "Fri, 14 Jan 2000 11:24:11 -0500 (EST)" Message-ID: Lines: 12 User-Agent: Gnus/5.0802 (Gnus v5.8.2) Emacs/20.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Garrett Wollman writes: > shutdown(s, SHUT_RD) ought to do it -- but I'm not sure whether it > will work correctly or not. Setting the buffer size to zero should > fail with EINVAL. shutdown() works fine (I verified it using netcat and netstat). Setting the buffer size to one also works, though it's an ugly hack. I opted for shutdown() at Ruslan's prompting. DES -- Dag-Erling Smorgrav - des@flood.ping.uio.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message