On 04/18, Eric Wong wrote:
> > +static int env_isequal(const char *e1, const char *e2)
> > +{
> > + for (;;) {
> > + char c1 = *e1++;
> > + char c2 = *e2++;
> > + c1 = (c1 == '=') ? '\0' : tolower(c1);
> > + c2 = (c2 == '=') ? '\0' : tolower(c2);
>
> Deali
+Cc Karsten for comments below...
Brandon Williams wrote:
> In order to avoid allocation between 'fork()' and 'exec()' prepare the
> environment to be used in the child process prior to forking.
>
> Switch to using 'execve()' so that the construct child environment can
> used in the exec'd proce
In order to avoid allocation between 'fork()' and 'exec()' prepare the
environment to be used in the child process prior to forking.
Switch to using 'execve()' so that the construct child environment can
used in the exec'd process.
Signed-off-by: Brandon Williams
---
run-command.c | 87
3 matches
Mail list logo