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/