[BusyBox] Re: busybox-cvs Digest, Vol 11, Issue 20

Vladimir N. Oleynik dzo at simtreas.ru
Wed Feb 25 08:06:59 UTC 2004


busybox-cvs-request at busybox.net wrote:

> Modified Files:
> 	httpd.c 
> Log Message:
> Joe.C, joe at numa dot com dot tw writes:

>    shutdown(a_c_w, SHUT_WR);

a_c_w shutdowned ;-) Use a_c_r for read to next line.
Yes, I know, a_c_w = a_c_r always, but more cosmetic right
change next a_c_w to a_c_r.

> +
> +  /* Properly wait for remote to closed */
> +  FD_ZERO (&s_fd) ;
> +  FD_SET (a_c_w, &s_fd) ;
> +      
> +  do {
> +    tv.tv_sec = 2 ;
> +    tv.tv_usec = 0 ;
> +    retval = select (a_c_w + 1, &s_fd, NULL, NULL, &tv);
> +  } while (retval > 0 && (read (a_c_w, buf, sizeof (config->buf)) > 0));
> +
>    shutdown(a_c_r, SHUT_RD);

--w
vodz





More information about the busybox mailing list