Hi Bartosz,

On Mon, Oct 20, 2014 at 01:36:45PM +0200, Bartosz Golaszewski wrote:
> Busybox already uses sendfile in httpd. This patch proposes to use it
> globally to copy data between file descriptors.

[...]

> diff --git a/Config.in b/Config.in
> index b83beb5..4b5ea69 100644
> --- a/Config.in
> +++ b/Config.in
> @@ -264,6 +264,14 @@ config PAM
>         Use PAM in some busybox applets (currently login and httpd) instead
>         of direct access to password database.
>  
> +config FEATURE_USE_SENDFILE
> +        bool "Use sendfile system call"
> +        default y
> +        depends on HTTPD

Why depend on HTTPD, then?

> +        help
> +          When enabled, busybox will use the kernel sendfile() function
> +          instead of read/write loops where applicable.
> +

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - [email protected] - tel: +972.2.679.5364, http://www.tkos.co.il -
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to