diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index 25d4e4236516..8cc19788b769 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -418,12 +418,8 @@ main(argc, argv) } } if (finet >= 0 && SecureMode) { - int bufsize; - - bufsize = 1; - if (setsockopt(finet, SOL_SOCKET, SO_RCVBUF, - &bufsize, sizeof bufsize) < 0) { - logerror("setsockopt"); + if (shutdown(finet, SHUT_RD) < 0) { + logerror("shutdown"); if (!Debug) die(0); }