[PATCH] broken inetd support in busybox httpd
Mathias Jeschke
busybox at gmj.cjb.net
Mon Jan 15 01:00:18 PST 2007
* Denis Vlasenko <vda.linux at googlemail.com> wrote:
> 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.
Seems to be a better solution. Thank you, it works well now.
Mathias
More information about the busybox
mailing list