Skip site navigation (1)Skip section navigation (2)
Date:      16 Jan 2000 22:05:02 +0100
From:      Dag-Erling Smorgrav <des@flood.ping.uio.no>
To:        Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
Cc:        <billf@FreeBSD.ORG>, pekkas@netcore.fi, freebsd-bugs@FreeBSD.ORG
Subject:   Re: bin/15414: syslogd -ss disables all network logging functions
Message-ID:  <xzphfgdiv7l.fsf@flood.ping.uio.no>
In-Reply-To: Garrett Wollman's message of "Fri, 14 Jan 2000 11:24:11 -0500 (EST)"
References:  <200001140147.RAA23443@freefall.freebsd.org> <billf@FreeBSD.ORG> <xzpiu0wohj9.fsf@flood.ping.uio.no> <200001141624.LAA85230@khavrinen.lcs.mit.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Garrett Wollman <wollman@khavrinen.lcs.mit.edu> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzphfgdiv7l.fsf>