bug-findutils
[Top][All Lists]
Advanced

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

[bug #29512] [feature request] xargs parallel processing env-val improve


From: anonymous
Subject: [bug #29512] [feature request] xargs parallel processing env-val improvement
Date: Sun, 11 Apr 2010 19:15:39 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.3 (KHTML, like Gecko) Chrome/5.0.365.0 Safari/533.3

Follow-up Comment #6, bug #29512 (project findutils):

i've checked the source.
there is pids[i] array (so i want to know i value).

it's not such hard... there are two ways to pass the value...

1.) use
int execle(const char *path, const char *arg, char * const envp[]);
instead of
int execvp(const char *file, char *const argv[]);

2.) (i think this one is quicker)
call setenv() right at start of xargs and after fork just edit allocated env
using  and snprintf(getenv(), "%d", i);

but in fact i don't know how to get i after fork(), so i can't make patch...

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?29512>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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