[PATCH] sed: open input files sequentially to avoid EMFILE

Denys Vlasenko vda.linux at googlemail.com
Thu Nov 28 02:15:57 UTC 2013


On Tuesday 26 November 2013 21:54, Daniel Borca wrote:
> Currently, sed pre-opens all files, which may cause EMFILE errors
> on systems with low ulimit -n.  Change sed to open one file at a time.
> 
> Ok, make bloatcheck output seems rather odd...

Applied with some editing. Thanks!

> With this patch, status = EXIT_FAILURE is never set.  I welcome any
> comments on this.

Fixed that, as it would be a regression.


More information about the busybox mailing list