bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] xargs with large (or zero) max-procs


From: James Youngman
Subject: Re: [PATCH] xargs with large (or zero) max-procs
Date: Sat, 5 Jan 2008 17:40:34 +0000

On Jan 5, 2008 5:25 PM, Eric Blake <address@hidden> wrote:

> Ultimately, if this is a real issue in practice, the solution would be a
> gnulib module that provides waitpid replacements for lacking systems.  But
> most likely, nobody actively ports to those old platforms any more.  Also,
> gnulib already has a wait-process module, so I wonder if it would be
> useful here.

I looked at it, and it's not.   The main problem is that too much
information about the fate of the process is irreversibly (afaict)
conflated into a single return value.   The xargs program needs to do
different things depending on whether the program exited or was killed
by a fatal signal, for example.

When we fix the issue with child processes that exit with status 126,
this will get a little more complex, too (xargs should return 123 for
that case, but actually returns 126, iirc).

James.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]