[PATCH] broken inetd support in busybox httpd

Denis Vlasenko vda.linux at googlemail.com
Sun Jan 14 08:55:19 PST 2007


On Thursday 11 January 2007 10:18, Mathias Jeschke wrote:
> * Bernhard Fischer <rep.nop at aon.at> wrote:
> 
> >> I send this patch to fix the inetd support for the httpd in busybox
> 
> > I can't seem to find the attached patch?
> 
> Sorry, due to your mailing list policy I had to resend the mail after
> subscription and I forgot to attach the file.

-                       if (full_write(config->accepted_socket, buf, count) != count)
+                       if (full_write(config->accepted_write_socket, buf, count) != count)

How about this?

	fd = config->accepted_socket;
	if (fd == 0) fd++; /* inetd mode? then write to fd# 1 */
	if (full_write(config->accepted_socket, buf, count) != count)...

Then you don't need config->accepted_write_socket at all.
--
vda


More information about the busybox mailing list