[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    [BusyBox] Re: busybox-cvs Digest, Vol 11, Issue 20
From:       "Vladimir N. Oleynik" <dzo () simtreas ! ru>
Date:       2004-02-25 8:06:59
Message-ID: 403C57A3.9090009 () simtreas ! ru
[Download RAW message or body]

busybox-cvs-request@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




_______________________________________________
busybox mailing list
busybox@mail.busybox.net
http://codepoet.org/mailman/listinfo/busybox


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic