Date: Wed, 20 Sep 2000 16:56:13 +0200 From: Maxime Henrion <mux@qualys.com> To: stable@freebsd.org Subject: patch for inetd Message-ID: <39C8D00D.FBE1407F@qualys.com>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------D0B33B3478892770BA9F1166 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, Ok, it was even easier than expected. With this patch, my inetd doesnt eat cpu anymore. It would be great if someone could review it. Regards, Maxime Henrion --------------D0B33B3478892770BA9F1166 Content-Type: text/plain; charset=us-ascii; name="diff-builtins.c" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diff-builtins.c" *** /usr/src/usr.sbin/inetd/builtins.c Wed Sep 20 16:49:26 2000 --- builtins.c Wed Jul 19 22:27:19 2000 *************** *** 480,487 **** ssize = read(s, &buf[size], (size_t)onreadlen); if (ssize == -1) iderror(0, 0, s, errno); - else if (ssize == 0) - return; bufsiz -= ssize; size += ssize; } --- 480,485 ---- --------------D0B33B3478892770BA9F1166-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?39C8D00D.FBE1407F>